PHP code example of intellow / make-route-for-laravel

1. Go to this page and download the library: Download intellow/make-route-for-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/ */

    

intellow / make-route-for-laravel example snippets

 php
php artisan make:model-route Model resourcefulAction
 php
php artisan make:model-route PizzaPie index
 php
Route::get('/pizza-pies/', [\App\Http\Controllers\PizzaPieController::class, 'index']);
 php
public function index()
{
    return view('models.pizza_pie.index');
}
 php
public function testPizzaPieIndex()
{
    $response = $this->get('pizza-pies');

    $response->assertStatus(200);
}
 php
php artisan make:route <slug> <resourceful-action> [<controller-name>]
 php
php artisan make:route /send-activation-email store
 php
Route::post('/send-activation-email/', [\App\Http\Controllers\SendActivationEmailController::class, 'store']);
 php
public function store(Request $request)
{
    
}