Category: software-development

Software development is the process of conceiving, specifying, designing, programming, documenting, testing, and bug fixing involved in creating and maintaining applications, frameworks, or other software components. Software development involves writing and maintaining the source code, but in a broader sense, it includes all processes from the conception of the desired software through to the final manifestation of the software, typically in a planned and structured process. Software development also includes research, new development, prototyping, modification, reuse, re-engineering, maintenance, or any other activities that result in software products.

  • No Builds Available on TestFlight

    You may find this issue when adding a new tester on the TestFlight page, question is how this user going to get the invitation.

    Suppose you are adding a tester for version 2.4 and the error message looks like this.

    All you have to do is go to the previous version 2.3 and add the new tester on that version. After the user accepts the invitation you won’t see the error for that user for any new versions.

    Spread the love
  • Laravel Sanctum Tutorial Step by Step

    Laravel Sanctum Tutorial Step by Step

    Laravel Sanctum provides a featherweight authentication system for single-page applications, mobile applications, and simple, token-based APIs. Sanctum allows each user of your application to generate multiple API tokens for their account. These tokens may be granted abilities/scopes which specify which actions the tokens are allowed to perform.

    Installation

    composer require laravel/sanctum and composer update

    Next, you should publish the Sanctum configuration and migration files using the vendor:publish Artisan command. 

    php artisan vendor:publish --provider="Laravel\Sanctum\SanctumServiceProvider"
    php artisan migrate 

    You can also use following sql for creating table, if there is a problem to run migrate command.

    CREATE TABLE `personal_access_tokens` (
       `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
       `tokenable_type` varchar(255) NOT NULL,
       `tokenable_id` bigint(20) unsigned NOT NULL,
       `name` varchar(255) NOT NULL,
       `token` varchar(64) NOT NULL,
       `abilities` text DEFAULT NULL,
       `last_used_at` timestamp NULL DEFAULT NULL,
       `created_at` timestamp NULL DEFAULT NULL,
       `updated_at` timestamp NULL DEFAULT NULL,
       PRIMARY KEY (`id`),
       UNIQUE KEY `personal_access_tokens_token_unique` (`token`),
       KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`)
     ) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8

    Next, if you plan to utilize Sanctum to authenticate an SPA, you should add Sanctum’s middleware to your api middleware group within your application’s app/Http/Kernel.php file:

    'api' => [
                'throttle:60,1',
                'bindings',
                \Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class,
            ],
    Laravel Sanctum Tutorial Step by Step

    Download source code

    Spread the love
  • Class ‘Laravel\Sanctum\Sanctum’ not found

    Class ‘Laravel\Sanctum\Sanctum’ not found

    Laravel Sanctum provides a featherweight authentication system for SPAs (single-page applications), mobile applications, and simple, token-based APIs. Sanctum allows each user of your application to generate multiple API tokens for their account. These tokens may be granted abilities/scopes which specify which actions the tokens are allowed to perform.

    Make sure you have already installed it by the composer

    composer require laravel/sanctum
    composer update

    Read more about Laravel Sanctum integration step by step

    Laravel Sanctum with JavaScript

    Laravel Sanctum official doc

    Spread the love