Have you run npm install yet?

|
hypernxf 2021-01-11 08:59:05
Parsa212 2021-01-11 08:58:17
Use config instead

try {{ config(‘app.url’) }}

dont use env() directly in blade.

2021-01-11 09:00:10
composer require laravel/ui

php artisan ui vue –auth

npm install && npm run dev

2021-01-11 09:01:10
hello im hendy, im using laravel 7. i have some problem with my laravel auth
2021-01-11 09:01:41
composer require just showing error fatal error
2021-01-11 09:02:49
and when i php artisan ui vue –auth it show up some error again command ui is not defined
2021-01-11 09:03:22
im newbie. hopefully i could solve it with join this awesome community
jimmy Shukurov 2021-01-11 09:06:05
Screenshot ur problem
hypernxf 2021-01-11 09:13:42
Hendy, try composer install
hypernxf 2021-01-11 09:14:07
then try the artisan command again
AlaaDq 2021-01-11 09:19:10
@hypernxf
So I can only work with laravel 5.5
With my php 7.0.0 😣😣
rebory 2021-01-11 09:20:01
hypernxf 2021-01-11 08:59:05
try {{ config(‘app.url’) }}

dont use env() directly in blade.

but it’s NOT PRINT ANY OTHER VAR LIKE {{ dd(config(‘WEB_URL’)) }}

hypernxf 2021-01-11 09:20:58
do you know what is {{}}?
rebory 2021-01-11 09:21:00
WEB_URL is my cutom var in .env
hypernxf 2021-01-11 09:21:42
If it’s your custom var WEB_URL, then go to config/services.php

Inside the array add in

‘WEB_URL’ => env(‘WEB_URL’)

rebory 2021-01-11 09:22:31
ok i will try
hypernxf 2021-01-11 09:22:37
sorry it’s wrong
2021-01-11 09:22:52
I m looking for good laravel resource for full time, please pm me for more details
hypernxf 2021-01-11 09:22:53
use config(‘services.WEB_URL’) to get your url
hypernxf 2021-01-11 09:23:03
after following the above steps.
rebory 2021-01-11 09:23:30
hypernxf 2021-01-11 09:22:37
sorry it’s wrong

laravel_discuss-66222.jpg

hypernxf 2021-01-11 09:23:38
nope
hypernxf 2021-01-11 09:23:51
are you familiar with array?
rebory 2021-01-11 09:24:11
this is image from env
hypernxf 2021-01-11 09:25:01
then under config/services.php

add in ‘web_url’ => env(‘WEB_URL)

samprogrammer 2021-01-11 09:46:32
laravel_discuss-66227.jpg
Ajax use solution
Abdul rahman 2021-01-11 09:48:12
laravel_discuss-66228.jpg
while running npm run dev
Abdul rahman 2021-01-11 09:48:24
please help
rebory 2021-01-11 09:50:21
@hypernxf thanks for my help
hypernxf 2021-01-11 09:50:54
You are welcome
Abdul rahman 2021-01-11 09:51:52
please help someone
hypernxf 2021-01-11 09:52:11
Abdul rahman 2021-01-11 09:48:12
while running npm run dev

what does it mean? after typing npm run dev did you type anything else in?

Abdul rahman 2021-01-11 09:53:01
freshly created laravel project with jetstream install and after npm install
Abdul rahman 2021-01-11 09:53:34
and running npm run dev getting this error
hypernxf 2021-01-11 09:54:38
have you run npm install yet?
Abdul rahman 2021-01-11 09:54:54
yes run
|