PHP code example of zachleigh / laravel-colors
1. Go to this page and download the library: Download zachleigh/laravel-colors 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/ */
zachleigh / laravel-colors example snippets
use Illuminate\Support\ServiceProvider;
use LaravelColors\LaravelColorsServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
//
if ($this->app->environment('local')) {
$this->app->register(LaravelColorsServiceProvider::class);
}
}
}
php artisan vendor:publish --provider="LaravelColors\LaravelColorsServiceProvider" --force
php artisan migrate