mardi 6 avril 2021

View [auth.login] not found. [NOT A REPEATED QUESTION]

I am developing a project in Laravel version 5.7 and an error "View [auth.login] not found.

" is occurring. enter image description here

It can be seen in the image. Now the main issue is that the route 'login' is not even being accessed in the function returning this error. The function is given below:

public function order($type){
    $a = new orders();
    $a->order_id = 'ODR'.rand(1,1000).'paymeny'.rand(1,1000).'successful'.rand(1,1000);
    $a->plan_id = $type;
    $a->student_id = User::orderBy('id' , 'DESC')->first()->id;
    $a->save();
    return route('student' , [User::orderBy('id' , 'DESC')->first()->id]);
}

I have searched a lot for this but couldn't find any kind of solution. I would really appreciate an answer. Thanks!!



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire