1. Go to this page and download the library: Download ricventu/laravel-route-maze 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/ */
ricventu / laravel-route-maze example snippets
class ProductsController
{
// index and __invoke defaults to GET
public function index() {...}
#[Get]
public function show($id) {...}
#[Post]
public function store(Request $request) {...}
#[Patch]
public function update($id, Request $request) {...}
#[Delete]
public function destroy($id) {...}
}