PHP code example of wbcodes / laravel-core

1. Go to this page and download the library: Download wbcodes/laravel-core 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/ */

    

wbcodes / laravel-core example snippets




      namespace App\Models;
      
      use Wbcodes\Core\Traits\SiteUserTrait;
      
      class User extends Authenticatable
      {
            use CoreUserTrait;
      }
  

   php artisan notifications:table          
   php artisan queue:failed-table           
   php artisan queue:table                  
   php artisan session:table    
   

   php artisan vendor:publish --provider="Wbcodes\Core\Providers\SiteCoreServiceProvider"
   

   php artisan vendor:publish --provider="Wbcodes\Core\Providers\SiteCoreServiceProvider" --tag=migrations
   php artisan vendor:publish --provider="Wbcodes\Core\Providers\SiteCoreServiceProvider" --tag=seeders
   php artisan vendor:publish --provider="Wbcodes\Core\Providers\SiteCoreServiceProvider" --tag=factories
   php artisan vendor:publish --provider="Wbcodes\Core\Providers\SiteCoreServiceProvider" --tag=public
   php artisan vendor:publish --provider="Wbcodes\Core\Providers\SiteCoreServiceProvider" --tag=lang
   php artisan vendor:publish --provider="Wbcodes\Core\Providers\SiteCoreServiceProvider" --tag=helpers
   php artisan vendor:publish --provider="Wbcodes\Core\Providers\SiteCoreServiceProvider" --tag=controllers
   php artisan vendor:publish --provider="Wbcodes\Core\Providers\SiteCoreServiceProvider" --tag=views
   

   > php artisan migrate --seed
   
 
    > php artisan migrate
    > php artisan db:seed
   
 
    > php artisan migrate:refresh
   
 
    > php artisan migrate:fresh
   

   php artisan sitecore:install
   

   php artisan sitecore:update
   

      php artisan sitecore:install --only=views --force
      

      php artisan sitecore:install --only=config
      

      php artisan sitecore:install --only=helpers