| Here is where you can register all of the routes for an application. | It's a breeze. Simply tell Laravel the URIs it should respond to | and give it the controller to call when that URI is requested. | */ Route::get('/', 'PainelController@index'); // Authentication routes... Route::get('auth/login', 'Auth\\AuthController@getLogin'); Route::post('auth/login', 'Auth\\AuthController@postLogin'); Route::get('auth/logout', 'Auth\\AuthController@getLogout'); // Registration routes... Route::get('auth/register', 'Auth\\AuthController@getRegister'); Route::post('auth/register', 'Auth\\AuthController@postRegister'); Route::get('painel', 'PainelController@index'); Route::get('tasks/create', 'TasksController@create'); Route::get('tasks', 'TasksController@index'); Route::get('profile/edit/{id}', 'ProfileController@edit'); // Rotas para alterar senha Route::get('profile/password', 'ProfileController@getPassword'); Route::post('profile/password', 'ProfileController@postPassword'); Route::model('tasks', 'Task'); Route::model('projects', 'Project'); Route::bind('tasks', function ($value, $route) { return App\Task::whereId($value)->first(); }); Route::bind('projects', function ($value, $route) { return App\Project::whereId($value)->first(); }); Route::resource('projects', 'ProjectsController'); Route::resource('projects.tasks', 'TasksController'); Route::resource('profile', 'ProfileController');