Author: ShairyPortfolio

  • Passing data to view

    Passing data to view

    Data can easily be passed from route to view by passing second argument to view and this argument is an array that is key value pair or we declare array in a variable and use this variable as a second argument. Here each key is a variable For Example Route::get (‘/contact’, function () {    …

  • Laravel Custom Route and View

    Laravel Custom Route and View

    Now we will create our own route and view with our own customize name and desired output whatever we want. Now we create route with name contact and view with same name. For this Go to Routes Folder and work on web. Php file Example Route::get(‘/contact’, function(){            return view(‘contact);            }) Here we return…

  • Laravel Basic of Route and View

    Laravel Basic of Route and View

    Consider any URL send request form the browser and go to server and that server use Laravel as a backend and perform the following steps: Route File looks at the request: Request first of all goes to route file and it looks the request and decide what to do next Get or process any data…

  • Steps to Install laravel

    Steps to Install laravel

    To Install Laravel follow following points: Use command: Composer global require Laravel/installer Then change the directory to htdocs from cd.. command After that cerate project using following command             Laravel new project_name It takes some time when it’s done then open the project to any editor like visual studio then Use terminal and check the…