The /horizon route from the laravel/horizon package works, but the css and javascript are not loaded.
this is what the road /horizon looks like:
However, I just installed the package and followed the laravel documentation installation
composer require laravel/horizon
php artisan horizon:install
php artisan optimize
npm run dev ( and I tried npm run build,...)
this is my config :
laravel-mix 4.0.7
laravel/horizon 5.14
laravel 8.0
Can you help me ?
Make sure assets are included in your application. Try running the following command.
php artisan vendor:publish --tag=horizon-assets && npm run dev
Resolved with variable environment :
ASSET_URL=/.
Related
I have installed larval v.8 and vuejs version 3 followed by this blog:
https://laraveldaily.com/laravel-8-vue-3-crud-composition-api/
I have run all commands displayed as below:
laravel new project
cd project
// editing .env file here
composer install
php artisan migrate
composer require laravel/breeze
php artisan breeze:install
npm install && npm run dev
but url of the localhost me display as below: Any idea how to solve it??
In all the static files (css and js) Apache return 404. Then my Laravel looks like this:
enter image description here
I tri too with the command:
php artisan serve
and the result is the same.
I using PHP 7.2 and Laravel 6.0.4
After installation of fresh laravel 6 follow these steps-
composer require laravel/ui
php artisan ui vue --auth
npm install
npm run dev
php artisan serve
Authentication support is now added with the help of a package. Please read for more details.
php artisan serve Heading ##enter image description here
php artisan serve
This vendor/autoload.php will be generated by composer.
Run composer install before you try to run your application.
If you have not installed composer yet. Follow the instructions on this page.
Run composer install or composer update first before you can use php artisan command. The vendor/autoload.php will be generated by composer.
I've been trying to work on a laravel app but I can't even make it start.
I've run composer install, composer global update, composer udpate, composer self-update and several other commands,
I've deleted the vendor folder, the composer.lock file, re-ran composer install and things I've found online to no avail. This is the error I keep getting:
#php artisan package:discover
In Container.php line 779:
Class request does not exist
Script #php artisan package:discover handling the post-autoload-dump event returned with error code 1
Not sure where to go next. Any ideas?
I would suggest you remove your composer itself and re-install the composer. the try install you laravel packages with it.
Try clearing application cache using this command: php artisan cache:clear
The cache:clear command can be used to clear the applications cache files.
Don't worry about your laravel
check composer correctly installed on your system
check composer have access for READ and WRITE in your system
after your sure about things
check your laravel install in your system for PHP you have and find specific you php version composer connected to it (Those who have multi PHP)
then have two option:
composer global require laravel/installer
then laravel new blog or
composer create-project --prefer-dist laravel/laravel blog
then go to folder cd /projectName
Use PHP's built-in development server: php artisan serve
I want to make use of auth system which comes with the laravel package but the problem is when I make new laravel package using composer i.e composer create-project laravel/laravel project name --prefer-dist
it do not install those auth resources which includes (i.e. auth folder inside resources > views) and also I can't find the Services Folder inside app directory.
All other things are working fine except this authentication system.
What can be the possible problems? Please give me solution
I am working with MAMP.
Taylor Otwell has made it opt-in for Laravel 5.1
You need to run following command after installation
php artisan scaffold:auth
UPDATE
I think this has been answered here
You could also run the command php artisan make:auth in the root directory of you laravel project. I had the same problem and it worked for me.
The command php artisan scaffold:auth didn't work for me i don't know why.
it issued the error:
[Symfony\Component\Console\Exception\CommandNotFoundException]
Command "auth" is not defined.
Did you mean this?
make:auth
in Laravel 5.2 you just have to run this command "php artisan make:auth" and the auth folder will be created
Since laravel 6.* version make:auth is no longer supported, use ui:auth instead.
For deploying ui pack run
composer require laravel/ui --dev
then update composer.json :
composer update -W
and do the:
php artisan ui:auth
You need execute
php artisan make:auth
now if your style css and js are missing
You need load file .css and .js
1) execute in your project
npm install
2) then execute
npm run dev => now in folder /public now exist folder js and css
3) reload page