Support the ongoing development of Laravel.io →
posted 11 years ago
Blade Packages

Hello,

First time Laravel install - went great. Then installed https://github.com/rydurham/Sentinel and that went great too.

I copied the package's layouts/default.blade.php to my own views/layouts/default.blade.php.

Then copied one of the package's views for my home page, took out the stuff in the body I didn't want so my home.php page contains this:

@extends(Config::get('Sentinel::config.layout'))

{{-- Web site Title --}}
@section('title')
    
Home
@stop

{{-- Content --}}
@section('content')
<h4>Home</h4>
<div class="row">
  <div class="col-md-10 col-md-offset-1">
      Hello
  </div>
</div>
@stop

and the output of the page in my browser is this:

@extends(Config::get('Sentinel::config.layout')) {{-- Web site Title --}} @section('title')      Home @stop {{-- Content --}} @section('content')
Home

Hello
@stop

The login page, and register page and all those work fine. Just not this portion I'm trying to copy.

What am I doing wrong or missing?

Thank you!

Last updated 3 years ago.
0

You said its home.php should be home.blade.php

Last updated 3 years ago.
0

Awesome! Thank you.

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

neon5 neon5 Joined 21 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.