The following code:
use Cartalyst\Sentinel\Native\Facades\Sentinel; use Illuminate\Database\Capsule\Manager as Capsule;
Is for people trying to use the package natively. Since you are using laravel, you do not need this. Please make sure you follow the instructions for laravel.
Since you noted laravel-5 in your question, I assume this is what you are using. In this case, first add this to your composer.json: composer require cartalyst/sentinel "2.0.*" And the following to the config / app.php file:
To the $providers array: 'Cartalyst\Sentinel\Laravel\SentinelServiceProvider',
And to $alias~ array :
'Activation' => 'Cartalyst\Sentinel\Laravel\Facades\Activation', 'Reminder' => 'Cartalyst\Sentinel\Laravel\Facades\Reminder', 'Sentinel' => 'Cartalyst\Sentinel\Laravel\Facades\Sentinel',
Once you do this, you can publish and transfer the package. You also need to extend Cartalyst\Sentinel\Users\EloquentUser to a user model instead of Eloquent. You will need to do the same if you are using a role model.
For more information, follow the documentation: https://cartalyst.com/manual/sentinel/2.0#laravel-5
make sure you are on the correct version: 2.0 for Laravel 5 and 1.0 for laravel 4. *
Regarding your second question, you will need to send an email to the client with the activation code (usually the code is hidden as a query string or something else, so the user does not need to know from this), and how do you activate the code. Or, if you prefer, you can automatically authenticate after registration.
More about activation in your documentation if you still cannot understand that we are here to help, but try for yourself first.