controle-series\routes\Web.php:
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::get('/', function () {
return view('welcome');
});
Route::get('/series', 'SeriesController@index');
controle-series\resources\views\series\index.php:
<!doctype html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Controle de Séries</title>
</head>
<body>
Teste OK, Séries!
</body>
</html>
controle-series\app\Http\Controllers\SeriesController.php:
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class SeriesController extends Controller
{
public function index(){
/*
$series = [
'Grey\'s Anatomy',
'Lost',
'Agents of SHIELD'
];
*/
return view ('series.index');
}
}