Install xampp, then download and install composer, where is the problem?

|
sotheast 2019-07-18 22:57:08
Why???
isnopitag 2019-07-18 22:59:14
sotheast 2019-07-18 22:55:31
Please help me I installed laravel not done?

Do you use Windows 10?

sotheast 2019-07-18 22:59:23
Yes
alexanderdavii 2019-07-18 23:00:12
sotheast 2019-07-18 22:59:23
Yes

install xampp , then download and install composer , where is the problem ?

sotheast 2019-07-18 23:00:51
I installed composer already
isnopitag 2019-07-18 23:01:26
sotheast 2019-07-18 22:59:23
Yes

Is more easy if you first install and environment like a production server, I suggest you to use wsl, windows subsystem Linux, it’s very easy to install a wsl of Debian

alexanderdavii 2019-07-18 23:02:27
sotheast 2019-07-18 23:00:51
I installed composer already

ok , where is the problem ?

sotheast 2019-07-18 23:02:30
When create new project run on shell cmd not working ?
Mnikoei 2019-07-18 23:02:35
is there any command to seer where is phpunit configuration file ?
alexanderdavii 2019-07-18 23:03:14
sotheast 2019-07-18 23:02:30
When create new project run on shell cmd not working ?

screenshot error ..

sotheast 2019-07-18 23:04:06
Tomorrow I will ask everyone again
sotheast 2019-07-18 23:04:34
Because now in Cambodia 🇰🇭 3:00 am
alexanderdavii 2019-07-18 23:04:55
good luck
sotheast 2019-07-18 23:05:22
Thanks I will try to do.
zack6849 2019-07-19 00:16:04
sotheast 2019-07-18 23:02:30
When create new project run on shell cmd not working ?

Make sure composers global vendor bin is in your path

Erfanhosseinpoor 2019-07-19 01:33:57
hello

How to assign my rout to any of Middleware’s bets?

UserLevel.php:
if (auth()->check()) {
foreach (auth()->user()->roles as $role) {
$roleId = $role->id;
}

if ($roleId == 3) {
return $next($request);
} elseif ($roleId == 2) {
return redirect(‘author’);
} elseif ($roleId == 1) {
return redirect(‘user’);
}
return redirect(‘/login’);

}

Erfanhosseinpoor 2019-07-19 01:35:07
Erfanhosseinpoor 2019-07-19 01:33:57
hello

How to assign my rout to any of Middleware’s bets?

UserLevel.php:
if (auth()->check()) {
foreach (auth()->user()->roles as $role) {
$roleId = $role->id;
}

if ($roleId == 3) {
return $next($request);
} elseif ($roleId == 2) {
return redirect(‘author’);
} elseif ($roleId == 1) {
return redirect(‘user’);
}
return redirect(‘/login’);

}

By running the following code the error is ‘not found’ displayed:

Route::get(‘/admin’, ‘HomeController@index’)
->name(‘admin’)
->middleware(‘auth’,’UserLevel’);

Route::get(‘/author’, ‘HomeController@authorPanel’)
->name(‘author’)
->middleware(‘auth’,’UserLevel’);

Route::get(‘/user’, ‘HomeController@UserPanel’)
->name(‘user’)
->middleware(‘auth’,’UserLevel’);

zack6849 2019-07-19 05:51:10
Erfanhosseinpoor 2019-07-19 01:35:07
By running the following code the error is ‘not found’ displayed:

Route::get(‘/admin’, ‘HomeController@index’)
->name(‘admin’)
->middleware(‘auth’,’UserLevel’);

Route::get(‘/author’, ‘HomeController@authorPanel’)
->name(‘author’)
->middleware(‘auth’,’UserLevel’);

Route::get(‘/user’, ‘HomeController@UserPanel’)
->name(‘user’)
->middleware(‘auth’,’UserLevel’);

well, what url are you going to

zack6849 2019-07-19 05:51:18
personally, i wouldnt do this like that at all
zack6849 2019-07-19 05:51:32
i’d have it be one controller and let the controller decide to redirect or which view to load
zack6849 2019-07-19 05:52:06
so the user loads / (the same route) and that triggers the controller, the controller checks their role, and either loads a different view, or redirects to a different route like that
sotheast 2019-07-19 09:25:49
Hello Guys! Can i install laravel using wamp?
skys215 2019-07-19 09:51:35
Laravel has nothing to do with wamp
Harrisdtt 2019-07-19 10:09:47
laravel_discuss-9621.jpg
hello everyone is it errors and how to solve it, please
vasanthamohan 2019-07-19 11:17:47
Why Auth::user() returns false in specific route. Even if I logged in?
zack6849 2019-07-19 14:39:08
Are you requiring your authentication middleware for your route
zack6849 2019-07-19 14:54:39
Harrisdtt 2019-07-19 10:09:47
hello everyone is it errors and how to solve it, please

where’s the error message it looks like there is a job that’s running to look for jobs that failed it didn’t find any and then it exited successfully

MrAbdurakhmonKurbanov 2019-07-19 16:39:47
Does laravel work on php7? Who is work it
DesolatorMagno 2019-07-19 16:41:08
Go to the page of Laravel, in the documentation it tell you the minimum version it need to run.
isnopitag 2019-07-19 19:49:06
MrAbdurakhmonKurbanov 2019-07-19 16:39:47
Does laravel work on php7? Who is work it

Yes I use Laravel 5.7 and 5.8 with php 7.2 and 7.3

MrAbdurakhmonKurbanov 2019-07-19 19:50:02
Thank you for your comments
isnopitag 2019-07-19 19:50:07
sotheast 2019-07-18 23:02:30
When create new project run on shell cmd not working ?

Did you add the environment variables to the windows path?

isnopitag 2019-07-19 19:51:56
MrAbdurakhmonKurbanov 2019-07-19 19:50:02
Thank you for your comments

There’s a little thing when you put your project at production mode, that happened to me at digital ocean’s droplet, if you have issues with that feel confident to sendme a private message

khatriafaz 2019-07-19 23:27:32
vasanthamohan 2019-07-19 11:17:47
Why Auth::user() returns false in specific route. Even if I logged in?

The route should pass auth middleware

isnopitag 2019-07-20 00:10:11
vasanthamohan 2019-07-19 11:17:47
Why Auth::user() returns false in specific route. Even if I logged in?

The same, you can add the Middleware at route file

isnopitag 2019-07-20 00:12:03
Harrisdtt 2019-07-19 10:09:47
hello everyone is it errors and how to solve it, please

Are you working with scheduled tasks?

vasanthamohan 2019-07-20 02:23:56
isnopitag 2019-07-20 00:10:11
The same, you can add the Middleware at route file

Ok thanks

vasanthamohan 2019-07-20 02:24:14
khatriafaz 2019-07-19 23:27:32
The route should pass auth middleware

Thankyou

Harrisdtt 2019-07-20 08:06:44
isnopitag 2019-07-20 00:12:03
Are you working with scheduled tasks?

Queue with supervisor

isnopitag 2019-07-20 08:08:07
Harrisdtt 2019-07-20 08:06:44
Queue with supervisor

Are you using hardware? o it’s a kind of deamon?

Harrisdtt 2019-07-20 08:08:51
isnopitag 2019-07-20 08:08:07
Are you using hardware? o it’s a kind of deamon?

With beanstalkd

Berlin 2019-07-20 10:11:28
How to upload a folder in a form
ErgashevXurshid 2019-07-20 10:20:12
You can upload file but not folder
2019-07-20 10:56:51
laravel_discuss-9649.jpg

2019-07-20 10:56:54
I have abstraks table: in my case it’s just like a posts table
One user my have I have two or more abstraks. And it’s successfully generate. But I have a problem to show all of those abstraks from user’s account, my view shows all abstraks in my table including the abstrak of other user.
I want to show all abstraks of the loged in user in one blade view.
How to do that in my show function?
here is my show function code:

public function show()
{
$abstraks = DB::table(‘abstraks’)->paginate(10);
return view(‘abstrak.status’, compact(‘abstraks’));
}

I have no idea to do that wish any one can help me, Please

R_IT_Geek 2019-07-20 10:58:43
Berlin 2019-07-20 10:11:28
How to upload a folder in a form

compress to zip!

Berlin 2019-07-20 11:10:17
Compression possible to using php
zack6849 2019-07-20 11:30:57
2019-07-20 10:56:54
I have abstraks table: in my case it’s just like a posts table
One user my have I have two or more abstraks. And it’s successfully generate. But I have a problem to show all of those abstraks from user’s account, my view shows all abstraks in my table including the abstrak of other user.
I want to show all abstraks of the loged in user in one blade view.
How to do that in my show function?
here is my show function code:

public function show()
{
$abstraks = DB::table(‘abstraks’)->paginate(10);
return view(‘abstrak.status’, compact(‘abstraks’));
}

I have no idea to do that wish any one can help me, Please

Show the table layout for abstraks

2019-07-20 11:43:44
zack6849 2019-07-20 11:30:57
Show the table layout for abstraks

laravel_discuss-9654.jpg

zack6849 2019-07-20 11:43:57
What
|