PHP code example of ninthspace / action
1. Go to this page and download the library: Download ninthspace/action 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/ */
ninthspace / action example snippets
class MyAction extends \Ninthspace\Action
{
}
class MyAction extends \Ninthspace\Action
{
public $authorisationException = \Illuminate\Auth\Access\AuthorizationException::class
}
class MyAction extends \Ninthspace\Action
{
public function handle()
{
return 'done';
}
}
(new MyAction())->run() // returns "done";