Slide 22
Slide 22 text
[
例3]
独自 namespace
composer.json
に設定
ルーティングで独自 namespace
を見るように設定
app/Providers/RouteServiceProvider.php
//protected $namespace = 'App\Http\Controllers';
protected $namespace = ''; //
空文字にする
routes/(api|web).php
use App\Http\Actions\AddPoint\AddPointAction;
$router->put('/customers/add_point', AddPointAction::class);
22