Support the ongoing development of Laravel.io →
Authentication Packages
Last updated 2 years ago.
0

Hi @zakiaziz I guess you are sorted by now, but if not then I have just started with Sentinel and Laravel 5.1 as well. I added to app\config

Cartalyst\Sentinel\Laravel\SentinelServiceProvider::class,

and aliases like this:

     'Activation' => 'Cartalyst\Sentinel\Laravel\Facades\Activation',
        'Reminder'   => 'Cartalyst\Sentinel\Laravel\Facades\Reminder',
        'Sentinel'   => 'Cartalyst\Sentinel\Laravel\Facades\Sentinel',

Then simply tested with some simple route closures:

Route::get( '/user/create', function() {
Sentinel::register(array(
'email'    => '[email protected]',
'password' => 'foobar',
));
return ('user [email protected](foobar) created');

I am new at this too, but hope that helps!

0

Hi @ChrisHe,Its working fine,I have a just a question,do i need a new controller for all these sentinel functions,Is there any views available against sentinel?

0

Sign in to participate in this thread!

Eventy

Your banner here too?

zakiaziz zakiaziz Joined 8 Aug 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.

© 2024 Laravel.io - All rights reserved.