Facing issue creating new page



  • Hello there!
    I am trying to create a new page with custom controller and view everything is working except am page CSS is not loaded and hence layout is disturbed.
    The page is looking like this [https://nimb.ws/GnFtqN](link url)
    code from my blade PHP file

    @extends('shop::layouts.master')
    
    @section('page_title')
        {{ __('shop::app.customer.forgot-password.page_title') }}
    @stop
    @section('content-wrapper')
    <div class="auth-content">
        <h1>Hello World</h1>
    </div>
    @endsection
    

    Following resources are requested which are returning 404 error

    public/css/shop.css
    public/js/shop.js
    

    Apart from this console is showing error that "Vue is undefined" which is because of missing shop.js



  • Hello,

    Pass your route through theme middleware.

    Thanks



  • @Jyoti said in Facing issue creating new page:

    middleware

    Yes its working fine !! Thanks alot


Log in to reply