• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

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

Facing issue creating new page

General Discussion
2
3
275
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 31 Jan 2020, 09:15

    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 31 Jan 2020, 13:03

      Hello,

      Pass your route through theme middleware.

      Thanks

      1 Reply Last reply Reply Quote 0
      • S
        samparker last edited by 1 Feb 2020, 07:11

        @Jyoti said in Facing issue creating new page:

        middleware

        Yes its working fine !! Thanks alot

        1 Reply Last reply Reply Quote 0
        1 out of 3
        • First post
          1/3
          Last post