PHP code example of anilcancakir / magic-starter-laravel
1. Go to this page and download the library: Download anilcancakir/magic-starter-laravel 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/ */
anilcancakir / magic-starter-laravel example snippets
namespace App\Providers;
use AnilcanCakir\MagicStarter\Contracts\CreatesTeams;
use App\Actions\MagicStarter\CreateTeam; // your implementation of CreatesTeams
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
public function register(): void
{
$this->app->bind(CreatesTeams::class, CreateTeam::class);
}
}
bash
composer magic-starter:install
php artisan migrate