Blog

Previous Next

Hosting Laravel App

User Rating: 0 / 5

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive
 

Ever wanted to move an app, Laravel, from public to root?

Well, this worked.

Copy everything in public to the root.

Run this if you don't have composer,

curl -sS https://getcomposer.org/installer | php — –filename=composer

composer dumpautoload -o

Some info on it[ composer dumpautoload -o ]:

It just regenerates the list of all classes that need to be included in the project (vendor/composer/autoload_classmap.php). Ideal for when you have a new class inside your project. Composer is a major part of the Laravel MVC Framework, but it also exists without Laravel. In fact you could use it in any project.In laravel it does:

1) It will in fact use Composer for some stuff

2) It will call Composer with the optimize flag

3) It will 'recompile' loads of files creating the huge bootstrap/compiled.php

4) And also will find all of your Workbench packages and composer dump-autoload them, one by one.

 

php artisan config:cache ( creates cache )

Selection 003

 

php artisan route:cache ( creates routes cache )

 

that's all.

 

you're now good.

 

 

 

About Me

Oops...Almost forgot to say something about me. But anyway, I'm that guy, yule Msee, who'll sort out your techie issue and hails from the land of milk and honey. Not forgetting the bitter herbs too.

This is what am best at. Feel free to ask something. 

Latest News

Latest Tweets

Search

Loading