Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • What to pass as parameters to the Url class?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 310
    Comment on it

    There are n number of situation where we want to pass parameter in URL and use that parameter in our controller.That can be easily explain by using example:

    There are few steps which I have implemented that are:

    Step 1:First we will define our routest in

    routes.php

    1. Route::get('sendMeetingReminder/{userRole}/{meetingDetail}','MeetingController@sendMeetingReminder');

    Here we can see that we have pass parameter in route url.

    Step 2:Now we have get that parameter by using sendMeetingReminder function

    1. public function sendMeetingReminder($userRole,$entryId){
    2. }

    In the above code we have get userRole and entryId .

    By this way we can pass as parameters to the Url class.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Reset Password
Fill out the form below and reset your password: