PHP code example of ami-praha / workshop-laravel-package

1. Go to this page and download the library: Download ami-praha/workshop-laravel-package 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/ */

    

ami-praha / workshop-laravel-package example snippets


return [
];

$workshop-laravel-package = new AmiPraha\WorkshopLaravelPackage();
echo $workshop-laravel-package->echoPhrase('Hello, AmiPraha!');
bash
php artisan vendor:publish --provider="AmiPraha\WorkshopLaravelPackage\WorkshopLaravelPackageServiceProvider" --tag="migrations"
php artisan migrate
bash
php artisan vendor:publish --provider="AmiPraha\WorkshopLaravelPackage\WorkshopLaravelPackageServiceProvider" --tag="config"