Where is the error usually located?

|
sadeqi125 2020-03-02 14:32:13
dont get auth()->user()
sadeqi125 2020-03-02 14:32:15
data
sadeqi125 2020-03-02 14:32:21
why???
Z_Yamin 2020-03-02 14:34:34
you can get like this every column:
auth()->user()->username
Valentin 2020-03-02 15:03:30
Hello everyone, to test normally my web services it’s localhost:8000/nomervice now for the api there is the prefix api which must be added so localhost:8000/api/nom service but when I type it doesn’t work. Could someone help me?
Z_Yamin 2020-03-02 15:06:21
Valentin 2020-03-02 15:03:30
Hello everyone, to test normally my web services it’s localhost:8000/nomervice now for the api there is the prefix api which must be added so localhost:8000/api/nom service but when I type it doesn’t work. Could someone help me?

what is the error?

Valentin 2020-03-02 15:08:12
Z_Yamin 2020-03-02 15:06:21
what is the error?

There is no error, when I enter the address corresponding to the service it considers that I entered localhost:8000 so it sends me back to the home page.

Z_Yamin 2020-03-02 15:15:45
Valentin 2020-03-02 15:08:12
There is no error, when I enter the address corresponding to the service it considers that I entered localhost:8000 so it sends me back to the home page.

may be it depends on routes

Z_Yamin 2020-03-02 15:16:11
did you checked the routes?
We call krunga 2020-03-02 15:28:37
Ok
sadeqi125 2020-03-02 15:29:21
how to solve page expired in cpanel
sadeqi125 2020-03-02 15:29:49
when i login and click login button got to 419 page expired
sadeqi125 2020-03-02 15:39:48
not solve my problome
sadeqi125 2020-03-02 15:40:05
and my app work correct on localhost
sadeqi125 2020-03-02 15:40:32
and when i upload in cpanel when i login goto page expired page
Valentin 2020-03-02 15:42:54
Z_Yamin 2020-03-02 15:16:11
did you checked the routes?

laravel_discuss-28565.jpg

maha_Aldali 2020-03-02 16:41:29
I want help. I want a database. For a hotel using Laraville
maha_Aldali 2020-03-02 16:43:00
Do you know which site has databases ready for Ravel?
abysnia 2020-03-02 16:48:03
2020-03-02 13:49:22
Your login account then look your browser cookies

Am using this $results=DB::table(‘ussd_seconds’)
->select(‘ussd_seconds.buy_once_544′,’ussd_seconds.records_date’)
->join(‘ussd_thirds’,’ussd_thirds.id’,’=’,’ussd_seconds.id’)
->where([‘id >0’])
->get();

abysnia 2020-03-02 16:48:15
and am still getting an error
Z_Yamin 2020-03-02 17:01:00
maha_Aldali 2020-03-02 16:43:00
Do you know which site has databases ready for Ravel?

I don’t think so. Search on github

noobmaster622 2020-03-02 19:24:59
Suggest a easy laravel excel exporting package
skys215 2020-03-02 19:34:07
Phpspreadsheet
ramadurai_muruganantham 2020-03-02 19:35:20
noobmaster622 2020-03-02 19:24:59
Suggest a easy laravel excel exporting package

https://github.com/Maatwebsite/Laravel-Excel

GitHub – SpartnerNL/Laravel-Excel: πŸš€ Supercharged Excel exports and imports in LaravelGitHub
πŸš€ Supercharged Excel exports and imports in Laravel – GitHub – SpartnerNL/Laravel-Excel: πŸš€ Supercharged Excel exports and imports in Laravel
2020-03-02 19:54:23
https://www.youtube.com/watch?v=D9oIu6jiYLk

Laravel Sanctum/Airlock with Vue for SPA AuthYouTube
http://usefullaravelpackages.com

Airlock has been renamed to Sanctum: https://blog.laravel.com/airlock-renamed-to-sanctum

We take a look at using Laravel Airlock to authenticate our Single Page Application in Vue. Airlock provides a lightweight authentication system relying on Laravel’s built-in cookie-based session authentication services. We use a Vue CLI application to scaffold out the front-end and a Laravel 7 application for the backend. We also make use of Tailwind UI components, look at navigation guards in Vue and do some basic validation.

GitHub Repo for Laravel: https://github.com/drehimself/airlock-example
GitHub Repo for Vue: https://github.com/drehimself/vue-airlock-example

If you want to do Mobile Auth, I did a video on that too: https://www.youtube.com/watch?v=o1iSwdjBt-Q

This article helped me out a lot: https://serversideup.net/using-laravel-airlock-with-nuxtjs/

This doesn’t seem to work in Safari. Did some digging and it looks like Safari does NOT send the cookies when making a request to /login, resulting in errors. The cookies do exist though. Will update description if I find a solution. Here is a thread where someone has the same issues: https://stackoverflow.com/questions/53082080/safari-does-not-set-cookie-but-chrome-and-firefox-do. If you figure out a solution, please let me know :).

# LINKS
My courses: https://codewithdre.com
Sign up for my newsletter: http://andremadarang.com/newsletter
My website: http://andremadarang.com
Twitter: http://twitter.com/drehimself
GitHub: http://github.com/drehimself
CodePen: http://codepen.io/drehimself

2020-03-02 19:54:42
this is very very very gooooooooooooooooood tutorial
2020-03-02 19:54:59
bye bye laravel passport πŸ˜€
Abhinav Raj 2020-03-02 20:34:45
Does any one know any repo for proxy calling feature in laravel
alisattarzadeh74 2020-03-02 20:37:38
hi
I have a problem about using pusher
alisattarzadeh74 2020-03-02 20:37:42
can anyone help me ?
Abhinav Raj 2020-03-02 20:46:37
I integrated socket.io
Abhinav Raj 2020-03-02 20:46:42
Not pusher
kilobyte24 2020-03-02 21:17:52
#ask.
I do not know what happened. When inputting data, this is what appears. Where is the error usually located?
kilobyte24 2020-03-02 21:17:56
laravel_discuss-28587.jpg

prime 2020-03-03 00:29:09
StanleyMasinde 2020-03-01 16:17:05
How is not not working? What error message are you getting?

419 page expired

DesolatorMagno 2020-03-03 00:37:45
kilobyte24 2020-03-02 21:17:56

In the controller.

espyrix 2020-03-03 00:48:29
maha_Aldali 2020-03-02 16:43:00
Do you know which site has databases ready for Ravel?

Ravel?

critical_user0 2020-03-03 01:09:04
maha_Aldali 2020-03-02 16:41:29
I want help. I want a database. For a hotel using Laraville

Do you mean Laravel? What is Laraville?

baya097 2020-03-03 05:00:35
hi guys ! i’m a beginner in web programminig with Laravel , and i installed it succesfully; but the problem happens when i want run it from my developpement stag(Laragon). Can someone help me please ?
baya097 2020-03-03 05:04:34
Here is what it show to me
baya097 2020-03-03 05:05:06
laravel_discuss-28598.jpg
here is it
baya097 2020-03-03 05:07:18
My OS is in french if i can tranlste : Not accessible site , server ip adress not found for KeumoeLaravel project
oxbir 2020-03-03 06:51:17
<b>How to select a language in fron page?</b>

I went for bilinguals, but the problem is in choosing languages ​​on the home page like the site.

What I changed is the following code, but nothing happened to me when I clicked on the <kbd> English </kbd> link.

app/Providers/RouteServiceProvider.php

protected function mapWebRoutes($request)
{
$local = request()->segment(1);//IN
app()->setLocale($local);//IN
$local = $request->segment(1);
if (!array_key_exists($local, config(‘app.locales’))){
$segments = $request->segments();
$segments[0] = config(‘app.fallback_locale’);
return redirect(implode(‘/’, $segments));
}
app()->setLocale($local);

Route::middleware(‘web’)
->namespace($this->namespace)
->prefix($local)//IN
->group(base_path(‘routes/web.php’));
}web.php

Route::view(‘/’, ‘index’);
index.blade.php

<!doctype html>
<html lang=”fa” dir=”rtl”>
<head>
<meta charset=”UTF-8″>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<link type=”text/css” rel=”stylesheet” href=”{{ asset(‘public/assets/lib/bootstrap-4.3.1-dist/bootstrap-rtl.min.css’) }}”>
<link type=”text/css” rel=”stylesheet” href=”{{ asset(‘public/assets/css/style.css’) }}”/>
<title>Select your lang</title>
</head>
<body>
<div class=”container”>
<a href=”/ar”>Arabic</a>
<a href=”/fa”>Farsi</a>
<a href=”/en”>English</a>
</div>
</body>
</html>
But I get this error…

>Too few arguments to function AppProvidersRouteServiceProvider::mapWebRoutes(), 0 passed in C:xampphtdocsurmiahardwareblogappProvidersRouteServiceProvider.php on line 71 and exactly 1 expected

Z_Yamin 2020-03-03 06:59:49
oxbir 2020-03-03 06:51:17
<b>How to select a language in fron page?</b>

I went for bilinguals, but the problem is in choosing languages ​​on the home page like the site.

What I changed is the following code, but nothing happened to me when I clicked on the <kbd> English </kbd> link.

app/Providers/RouteServiceProvider.php

protected function mapWebRoutes($request)
{
$local = request()->segment(1);//IN
app()->setLocale($local);//IN
$local = $request->segment(1);
if (!array_key_exists($local, config(‘app.locales’))){
$segments = $request->segments();
$segments[0] = config(‘app.fallback_locale’);
return redirect(implode(‘/’, $segments));
}
app()->setLocale($local);

Route::middleware(‘web’)
->namespace($this->namespace)
->prefix($local)//IN
->group(base_path(‘routes/web.php’));
}web.php

Route::view(‘/’, ‘index’);
index.blade.php

<!doctype html>
<html lang=”fa” dir=”rtl”>
<head>
<meta charset=”UTF-8″>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<link type=”text/css” rel=”stylesheet” href=”{{ asset(‘public/assets/lib/bootstrap-4.3.1-dist/bootstrap-rtl.min.css’) }}”>
<link type=”text/css” rel=”stylesheet” href=”{{ asset(‘public/assets/css/style.css’) }}”/>
<title>Select your lang</title>
</head>
<body>
<div class=”container”>
<a href=”/ar”>Arabic</a>
<a href=”/fa”>Farsi</a>
<a href=”/en”>English</a>
</div>
</body>
</html>
But I get this error…

>Too few arguments to function AppProvidersRouteServiceProvider::mapWebRoutes(), 0 passed in C:xampphtdocsurmiahardwareblogappProvidersRouteServiceProvider.php on line 71 and exactly 1 expected

protected function mapWebRoutes(Request $request)

oxbir 2020-03-03 07:45:35
Z_Yamin 2020-03-03 06:59:49
protected function mapWebRoutes(Request $request)

This error occurred in the image below.

oxbir 2020-03-03 07:46:13
laravel_discuss-28606.jpg

skys215 2020-03-03 08:11:58
baya097 2020-03-03 05:05:06
here is it

did you add hosts?

sadeqi125 2020-03-03 08:17:07
how solve 419 page expired when login in laravel system in cpanel
oxbir 2020-03-03 08:48:21
oxbir 2020-03-03 07:46:13

Answer my question

mmohitssingla 2020-03-03 09:34:54
May be csrf token is missing in form
|