Views
Views
Basic Usage
Views contain the HTML served by your application and separate your controller / application logic from your presentation logic. Views are stored in the resources/views
directory.
A simple view might look something like this:
<!-- View stored in resources/views/greeting.php --> <html> <body> <h1>Hello, <?php echo $name; ?></h1> </body> </html>
Since this view is stored at resources/views/greeting.php
, we may return it using the global view
helper function like so:
Route::