Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Facing issue creating new page

    General Discussion
    2
    3
    269
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      samparker last edited by

      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

      1 Reply Last reply Reply Quote 0
      • J
        Jyoti last edited by

        Hello,

        Pass your route through theme middleware.

        Thanks

        1 Reply Last reply Reply Quote 0
        • S
          samparker last edited by

          @Jyoti said in Facing issue creating new page:

          middleware

          Yes its working fine !! Thanks alot

          1 Reply Last reply Reply Quote 0
          • First post
            Last post