A
A
Andrey Boychenko2016-04-09 23:42:31
Laravel
Andrey Boychenko, 2016-04-09 23:42:31

PHP artisan make: Why doesn't SomeController create a restfull controller?

Good night, actually the question is in the title. Entering

php artisan make: SomeController

an empty controller is created
<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

use App\Http\Requests;

class SomeController extends Controller
{
    //
  
}

What's the catch? Thanks for the help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrzej Wielski, 2016-04-09
@Ka4_Piton

The catch in Laravel 5.2
In 90% of cases, people generate an empty controller, so they did it by default.
You can generate crud using the function
php artisan make:controller Test --resource

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question