php - Laravel Directory Restructuration -


I am very confused as a way to change Laravel's directory structure.

I changed my directory structure to go to this structure:

  source file + app + bootstrap + public  

In the structure:

  source directory + app + public + bootstrap  

To change the directory structure, I have the public Code> bootstrap / path Code>, so it looks like this now 'public' = & gt; __DIR __. After doing this, app / public / index.php was giving me an error by saying that it was' '/ .. / app / public' Find the t autoload.php or start.php , so I went inside the file and the path of the two files was changed to the following:

  Expected __DIR __. '/.../bootstrap/autoload.php'; $ App = require_once __DIR __. '/ .. / .. / bootstrap / start.php';  

Now the localhost: 8000 is actually loaded, but there is a problem - to be able to load css / javascript files, they require a In two directories, with / public and / app / public If I extract the CSS file from / public , the scene becomes confusing if I remove the CSS file from / app / public , the scene also gets confused < / P>

Here is an example of how I am loading the CSS file from view, in this case, layout.blood.fp :

  & Lt; Link href = "css / core / main.css" rel = "stylesheet" & gt;  

Can anyone explain to me what is going on in the world, and perhaps possible solution? Thanks!

I'm not sure how the overall picture of your edits will be affected (I understand that you What has done, but if the tree is not privately reorganized, I am unaware of the implications ...)

However, with that being said; I personally use larval facilities to make sure that the right way is being used. For example, loading a CSS ...

  & lt; Link rel = "stylesheet" href = "{{URL: from ('/'). '/'}} Css / default.css" & gt;  

I hope this will tell you in the right direction!


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

c# - Create dynamic LINQ query expression at runtime which translates into a parameterized SQL query for nullable types -

cmake - cpack generates RPMs with %files entries that conflict with the RPM spec. How to fix? -