1st go to recourse > views and create directory one is front and 2nd is admin
2nd on front folder create on directory home and a php file master.blade.php
3rd copy all code of your template index.html and past on master.blade.php
4th go to routes >web.php and check the root. make get and load a view at / with a controller and function
5th on home directory create a file home-content.blade.php
on home-content.blade.php
2nd on front folder create on directory home and a php file master.blade.php
3rd copy all code of your template index.html and past on master.blade.php
4th go to routes >web.php and check the root. make get and load a view at / with a controller and function
5th on home directory create a file home-content.blade.php
on home-content.blade.php
@extends('front.master')
Title dynamic:
@section('title') RAN - IT @endsectionand master.blade.php@yield('title')==================================How to get style and imagesgo to public create 2 directory one is front and another adminand past all css, images, js file on front folder.sec dynamic:{{asset('/front/')}} before /in front folder or file.=====================================for href dynamic:{{url('/')}} root directoryanother way{{URL::to('/')}} Here URL is classanother way:{{route('/')}}=================================for fix section:we will create a folder name includes on front folderand all commerce section will go on here like header, sidebar etc.then we will use @include and i will not use @yield and @sectionWe will just past the html code on header , footer sidebar etc.Thank You.
Are you a YouTuber, then know How To Get Sponsorship For YouTube Channel For Free!
ReplyDelete