Browse Laravel 5 not found

I have the strangest mistake in Laravel 5, and I haven't had this in any of my other projects.

Problem

I get the following error when trying to hit my application

There is no such file or directory (View: /home/vagrant/Code/resources/views/layout/master.blade.php) (View: /home/vagrant/Code/resources/views/layout/master.blade. PHP)

However in my directory structure

it definitely exists!

And in my click template

@extends('layout.master') @section('content') jfoewifjewo[ij @endsection 

In my controller

 public function index() { return view('home'); } 

Has anyone else got into this problem? I have never encountered this before. Yes, the repository has read / write on local and manor.

UPDATE: I am on Laravel 5.0.13

+5
source share
3 answers

This problem is using Laravel Elixir with the estate. I went back to MAMP to find out if I received the same error and what told me that I was not in the rev-manifest.json file in public / build. After some digging, I found out that if you do not apply the "version" function to the elixir function in your gulpfile, the build folder will not be generated and calls to the "elixir" function in your blade templates will fail. It seems like a bubble, like a mistake in finding a representation, when in fact the problem is with finding a dependency.

Use gulp to create your sass or less files for sure, but for a while just stick to URL :: asset () to get your paths to javascript and css files until all the elixir kinks are developed.

+4
source

This is a well-known version of Laravel version 5.0.1 (@Zarathuztra version) Here are some comments on this issue: https://laracasts.com/discuss/channels/general-discussion/laravel-5-error-out-of-the-box -with-update-route-throws-an-error

Find "PratyushPundir" and from them you will see that some people having the same problem

A Laravel update should fix it.

+3
source

I will fix this by adding a version. Because after adding the version to gulp, it will generate rev-mainfest.json.

original gulp in the estate

 elixir(function(mix) { mix.sass('app.scss'); }); 

I turn to

 elixir(function(mix) { mix.sass('app.scss') .version(["public/css/app.css"]); }); 

And it works.

0
source

Source: https://habr.com/ru/post/1214396/


All Articles