PHP code example of shawnsandy / laravel-install-kit

1. Go to this page and download the library: Download shawnsandy/laravel-install-kit library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

shawnsandy / laravel-install-kit example snippets

 php

    "laracasts/generators": "^1.1"

 php
    protected $middleware = [
        //...
        \Styde\Html\Alert\Middleware::class,
        //...
    ];
 php

protected $routeMiddleware = [
  ...
  'can' => \Spatie\Authorize\Middleware\Authorize::class,

];


    /**
       * Register any application services.
       *
       * @return void
       */
      public function register()
      {
          /*
           * Custom providers
           */
          if ($this->app->environment() == 'local') {
              $this->app->register('Laracasts\Generators\GeneratorsServiceProvider');
          }
      }

 bash
    php artisan vendor:publish --provider="Barryvdh\Debugbar\ServiceProvider"
 bash
    php artisan vendor:publish --provider='Styde\Html\HtmlServiceProvider'
 bash
    php artisan vendor:publish --provider="Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider" --tag=config
 bash


    php artisan vendor:publish --provider="Spatie\LaravelAnalytics\LaravelAnalyticsServiceProvider"


 bash

    php artisan vendor:publish --provider="Spatie\MediaLibrary\MediaLibraryServiceProvider" --tag="migrations"

 bash

    php artisan vendor:publish --provider="Spatie\Authorize\AuthorizeServiceProvider"

 bash

    php artisan vendor:publish --provider="Spatie\Authorize\AuthorizeServiceProvider"

 bash
     php artisan vendor:publish --provider="Spatie\GoogleSearch\GoogleSearchServiceProvider"