Laravel return view within web.php(routes file)

What I learned: Route::get(‘/’, function () {    return view(‘welcome’); }); Welcome here is a view Views are stored in resorces->views folder Route::get(‘/hello2’,function(){        return View::make(‘welcome’); //it knows to look for the php extension because laravel is php framework   }); Laravel supports two types of templates for views Php template

Continue reading »

Laravel routing

All of laravel routes are maintained in a central location — routes.php Route::get(‘/hello’,function(){    return view(‘firstpage’);;   // returns a html view which is a basic php file });   Samples::   <?php   /* |————————————————————————– | Web Routes |————————————————————————– | | Here is where you can register web routes for your

Continue reading »

Laravel foundamental knowledge

Laravel is a MVC framework Laravel recognizes common tasks required by web apps Included function: Authentication–verifying users and handling access Routing –directing requests effeiciently Database management – input and output control Mail- sending email Advantages Laravel is built on a strong foundation of components Key components: Symfony It uses composer ,

Continue reading »

research Laravel — the first laravel page

The experience that I learned The routes folder contains the configuretion about the routing rule: in web.php file, I added code below: Route::get(‘/hello’,function(){ return view(‘firstpage’);; }); ‘/hello’ indicates to ‘public/hello’    -> the method above defines that ‘/hello’  will render view firstpage.php which is in resources/views/ The result is as

Continue reading »