I'd like to know if there is any way to change the basic template for the controller and the model in laravel5.4. I mean when I run:
php artisan make:controller ControllerName --resource
it will generate this:
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class UsersController extends Controller
{
public function index()
{
return view('users.index');
}
public function create()
{
}
public function store(Request $request)
{
}
public function show($id)
{
}
public function edit($id)
{
}
public function update(Request $request, $id)
{
}
public function destroy($id)
{
}
}
I need to change this template for anything I want to change the model as well.