Well organized views and templates.
// normal php data <?php echo $username ?>
// with blade tags {{ $username }}
// ternary statement {{ isset($title) ? $title : 'My App' }}
// default value {{ $title or 'My App' }}
if
@if ($users->count() > 0) show the users @else No users! @endif
foreach
@foreach ($users as $user) The user is {{ $user->name }} @endforeach
@extend('layouts.main')
@yield('content')
@section('content') the content goes here @endsection
@include('partials.header')
@stack('scripts')
@push('scripts') <script src="js/dashboard.js"></script> @endpush
By Chris Sevilleja
Making scotch.io. Google Dev Expert. Champion pizza maker.