Adamantyn

Member Since 5 Months Ago

Experience Points
170
Total
Experience

4,830 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
0
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-in-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist Created with Sketch.

    Laracasts Evangelist

    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.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

  • Community Pillar

    Earned once your experience points ranks in the top 10 of all Laracasts users.

Level 1
170 XP
Jan
26
1 month ago
Activity icon

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');
    }
}

Jan
25
1 month ago
Activity icon

Replied to Laravel Redirection To Email/verify With SSL

I use Laravel 7.

Yes I have this class.

Jan
23
1 month ago
Activity icon

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.

Activity icon

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 ?

Activity icon

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.

Jan
22
1 month ago
Activity icon

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

Sep
29
5 months ago
Activity icon

Replied to A New Method In Controller From User

Thank you,

Finally I will write the content of the request directly to the controller. I'm not happy with this solution but it works in this case.

Sep
28
5 months ago
Activity icon

Replied to A New Method In Controller From User

Thank you for your reply.

But that's not what he wants. He want to be able to change the methods of the controller as he wants from a form on the website.

Can it work with the PHP eval() function ? If i save the code as a string in the database and call it in eval() ?

Activity icon

Started a new Conversation A New Method In Controller From User

Hi,

I have a client who want to upload with a form a method to use it in a Controller. What I need to achieve is to upload a PHP function in a textarea, and insert it in a Controller. I have either to paste it to the Controller file or save it in the database as a string and get it back to the Controller.

Don't ask me why, I don't know, this is what he wants...

Do you have any suggestion ?

Thanks