-
Notifications
You must be signed in to change notification settings - Fork 49
Basic Template
JP Barbosa edited this page Mar 20, 2016
·
4 revisions
nano app/Providers/AppServiceProvider.php
...
public function boot()
{
view()->composer('*', function ($view) {
$layout = 'layouts.html';
$view->with(compact('layout'));
});
}
...
mkdir resources/views/layouts
nano resources/views/layouts/html.blade.php
<!DOCTYPE html>
<html>
<head>
<title>Laravel Apz</title>
</head>
<body>
@yield('content')
</body>
</html>
@extends($layout)
@section('content')
...
@endsection
nano resources/views/articles/index.blade.php; \
nano resources/views/articles/show.blade.php; \
nano resources/views/articles/create.blade.php; \
nano resources/views/articles/edit.blade.php; \
nano resources/views/authors/index.blade.php; \
nano resources/views/authors/show.blade.php; \
nano resources/views/authors/create.blade.php; \
nano resources/views/authors/edit.blade.php;
open http://localhost:8000/articles
open http://localhost:8000/articles/create
git add .
git commit -m "Add basic template"
Next step: Bootstrap
- Setup
- Basic CRUD
- Validation
- Views
- Association
- Association Controller
- Association Views
- Basic Template
- Bootstrap
- Bootstrap CRUD
- Alerts
- Welcome Page
- Ajax CRUD
- Send Email
- Send Email Views
- Jobs Queue
- Captcha
- Async External Content
- Cached External Content
- Tests Setup
- Functional Tests
- Acceptance Tests
- Continuous Integration
- Deploy with Heroku
- Deploy with Forge
- Update README