Member Since 6 Months Ago
4,830 experience to go until the next level!
In case you were wondering, you earn Laracasts experience when you:
Earned once you have completed your first Laracasts lesson.
Earned once you have earned your first 1000 experience points.
Earned when you have been with Laracasts for 1 year.
Earned when you have been with Laracasts for 2 years.
Earned when you have been with Laracasts for 3 years.
Earned when you have been with Laracasts for 4 years.
Earned when you have been with Laracasts for 5 years.
Earned when at least one Laracasts series has been fully completed.
Earned after your first post on the Laracasts forum.
Earned once 100 Laracasts lessons have been completed.
Earned once you receive your first "Best Reply" award on the Laracasts forum.
Earned if you are a paying Laracasts subscriber.
Earned if you have a lifetime subscription to Laracasts.
Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.
Earned once you have achieved 500 forum replies.
Earned once your experience points passes 100,000.
Earned once your experience points hits 10,000.
Earned once 1000 Laracasts lessons have been completed.
Earned once your "Best Reply" award count is 100 or more.
Earned once your experience points passes 1 million.
Earned once your experience points ranks in the top 50 of all Laracasts users.
Earned once your experience points ranks in the top 10 of all Laracasts users.
Replied to Laravel Redirection To Email/verify With SSL
<?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use App\Providers\RouteServiceProvider;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
class LoginController extends Controller
{
/*
|--------------------------------------------------------------------------
| Login Controller
|--------------------------------------------------------------------------
|
| This controller handles authenticating users for the application and
| redirecting them to your home screen. The controller uses a trait
| to conveniently provide its functionality to your applications.
|
*/
use AuthenticatesUsers;
/**
* Where to redirect users after login.
*
* @var string
*/
protected $redirectTo = RouteServiceProvider::HOME;
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('guest')->except('logout');
}
}
Replied to Laravel Redirection To Email/verify With SSL
An important point.
I changed the default route in RouteServiceProvider.php
to :
public const HOME = '/';
And as I said it works well with http, but not with SSL.
Replied to Laravel Redirection To Email/verify With SSL
Thank you.
'Not sure what any of this has to do with ssl though?'
It works without ssl. I don't understand why ?
Replied to Laravel Redirection To Email/verify With SSL
Thank you very much.
My customer wants that the first page when a gust comes on the site is the login page, and only after the login or registration and verification he will be redirected to
Route::get('/', '[email protected]')->name('welcome');
How can I achieve that ? If I put the above route out of the verified middleware, it wont be verified.
Started a new Conversation Laravel Redirection To Email/verify With SSL
I have an applicatoion made with Laravel, everythings works well but when I run it on a server with SSL, i'm redirected to the route https://example.com/email/verify when i try to access https://example.com. Without SSL it works as usual.
When I target the file 'index.php', like https://example.com/index.php, I can use the application normally.
I have a redirection to https in AppServiceProvider.php, usualy it works well.
public function boot()
{
/* Force SSL routes */
if($this->app->environment('production')) {
\URL::forceScheme('https');
}
}
My .env file is correctly configurated.
My routes/web.php begin like that :
/* All Routes in the web middleware */
Route::group(['middleware' => 'web'], function () {
// /* Routes for authentication */
Auth::routes(['verify' => true]);
/* Authentication required for all those routes */
Route::middleware('verified')->group(function () {
/* Route for the Home page */
Route::get('/', '[email protected]')->name('welcome');
/* Routes to manage users profiles */
Route::resource('profiles', 'ProfileController');
Any ideas ?
Thanks