PHP code example of therealedatta / laravel-actions
1. Go to this page and download the library: Download therealedatta/laravel-actions 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/ */
therealedatta / laravel-actions example snippets
public function handle(): User
{
$validated_data = $this->validate();
return tap($this->user)->update($validated_data);
}
bash
php artisan actions:stubs
bash
php artisan make:action User\EditUser