Skip to content
Gravitano edited this page Jun 9, 2015 · 3 revisions

Views

You can create your own view in your app/views folder and make sure all of views to extends admin::layouts.master view or you can user $layout variable. Here's an example.

@extends($layout)

@section('content')

   <h1>Hello there</h1>

@stop

In that master page included 3 section that you can use. They are style, content and script. The style section is used to add some custom CSS, the content is used to showing a content and the script is used to add some custom script.

@extends($layout)

@section('style')
    <style>h1{ font-size: 24px; }</style>
@stop

@section('content')

   <h1>Hello there</h1>

@stop

@section('script')
    <script> alert("Hello!"); </script>
@stop
Clone this wiki locally