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
    • 83
    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

    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

    public function sendMeetingReminder($userRole,$entryId){
    }
    

    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
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: