Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

Build Demo 14 layout


Hello,

I have installed Laravel Demo 1 as i noticed the Laravel pack only has demo 1-9. But what i really want is the demo 14, can you guide me on how to go about creating the Demo 14 layout using the HTML partials from the layout builder.


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (1)


Hi,

To include the partial file in your Laravel project, you can create a folder called layout inside the resources/views directory. Eg. resources/views/layout. You can then place the partial files inside this folder, following the structure of the other demos.

After exporting the partials, rename _default.blade.php to master.blade.php and move it to resources/views/layout/demo14.

In your master.blade.php file, extend the base/base.blade.php file and define the content of the demo14 layout. Here's an example:


@extends("base.base")

@section("content")
// demo14 layout content here
@endsection


Finally, update any @include() statements in the partials files to import the appropriate blade files.

Let us know if you have any further questions or concerns.

Thanks


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(