sort of installed Sentinel ( i say sort of because I dont understand one part that says:
Sentinel ships with default implementations for illuminate/database, in order to use it, make sure you require it on your composer.json file.
// Import the necessary classes
use Cartalyst\Sentinel\Native\Facades\Sentinel;
use Illuminate\Database\Capsule\Manager as Capsule;
// Include the composer autoload file
require 'vendor/autoload.php';
Question 1: where do I write that code ?
Question 2:, what I care most now is how to make something out of this, regarding Registration, Activation etc. I would have expected to have a link created that is sent to your email and upon clicking on it you activate it. But all I can see it says is this:
$credentials = [
'email' => 'john.doe@example.com',
'password' => 'password',
];
$user = Sentinel::register($credentials);
or if Also activate:
$credentials = [
'email' => 'john.doe@example.com',
'password' => 'password',
];
$user = Sentinel::registerAndActivate($credentials);
I am supposed to write that in the Controller when I get the input ? and what about the email activation ?