Laravel Folder Structure

Laravel File Structure


@extends('layouts.master')
@section('title') @lang('translation.Test') @endsection
@section('content')

@component('components.breadcrumb')
    @slot('li_1') Skote @endslot
    @slot('title') Test Page @endslot
@endcomponent

    <div>
        ...
    </div>
                
@endsection                                       

Layout setup

You can set the default layout in the resources/views/layouts/master.blade.php file in the body tag.

<body data-bs-theme="light" data-topbar="light" data-sidebar="dark"> 
data-bs-theme="light" To set Light layout.
data-bs-theme="dark" To set Dark layout.
data-sidebar="light" To set Light Sidebar.
data-sidebar="dark" To set Dark Sidebar.
data-topbar="light" To set Light Topbar.
data-topbar="dark" To set Dark layout mode.
© Skote.