laravel 생성 컨트롤러
php artisan make:controller MyController
laravel create resource controller
php artisan make:controller PhotoController --resource
laravel create controller 명령
php artisan make:controller UserController
라라벨 컨트롤러 미들웨어
class UserController extends Controller
{
/**
* Instantiate a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('auth');
$this->middleware('log')->only('index');
$this->middleware('subscribed')->except('store');
}
}