Questions tagged [laravel-6]
Laravel 6.0 is a past main version of the open-source PHP web framework created by Taylor Otwell. It was released on September 3, 2019. Use the [laravel] tag for general Laravel related questions.
laravel-6
1,911
questions
0
votes
0
answers
26
views
http post request returning error 422 in laravel
I have my Request like this:
class RegisterRequest extends Request
{
public function rules()
{
$rules = [
'role' => [
'required',
'string'...
0
votes
1
answer
98
views
Laravel 6 Task Scheduler Issue: Commands Not Executing
I'm encountering an issue with Laravel 6's task scheduler, where scheduled commands are not running as expected.
I want to automate two methods in two different classes using Laravel's task scheduler. ...
1
vote
1
answer
48
views
How to optimize - PHP 7.3.14 + Laravel 6
I need to replicate a legacy structure for comparison purposes and to motivate system migration.
I will write a report pointing out the pros and cons of this migration.
But I immediately had a problem,...
0
votes
0
answers
34
views
Multiauth not working properly using guard for user login
I created multi authentication in Laravel for user and admin through same table
User Migration :
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use ...
0
votes
1
answer
47
views
Missing required parameters for [Route: home.destinationsDetailCategory] [URI: destinations/{slug}/{category}]
I am not an expert in programming, I just deploy Laravel projects to the server, but I get errors after everything is deployed. I'm using Laravel Framework 6.20.5 I have a named route
Route::get('/...
0
votes
2
answers
79
views
Trouble with Laravel Eloquent Relationship
I am currently working on a Laravel project and encountering an issue with Eloquent relationships. I have two models, User and Post, and I'm trying to establish a one-to-many relationship between them....
0
votes
0
answers
65
views
Supervisor issue ? Notification cache? Laravel notification (Customizing The Templates) sometimes used old view
I handle old project laravel 6.*
For sending email I using customize template notification for laravel from
https://laravel.com/docs/6.x/notifications#customizing-the-templates
after I run
php artisan ...
0
votes
0
answers
39
views
ErrorException(code: 0): Erroneous data format for unserializing 'MongoDB\\BSON\\ObjectId'
Frequently, getting the unserializing error from laravel core file /vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php:53 for Mongodb data.
Please find the running versions,
php 7.4.
...
0
votes
0
answers
46
views
winHttp.GetAllResponseHeaders exists cookie value but not in the web browser
i try to setcookie with just clicking button in the vb with using winhttp.
and i am using php Laravel framework.
this is my vb code
Private Sub Command1_Click()
Dim winHttp As Object
Set ...
-1
votes
1
answer
71
views
How to fetch token for Laravel REST API?
I am using Laravel 6.4 version and trying to get tokens using following code.
$http = new \GuzzleHttp\Client();
try {
$tokenResponse = $http->post('http://127.0.0.1:8000/oauth/token', [
...
-1
votes
1
answer
209
views
Composer 2.2 gives error on using PHP below 7.3 when it is using 7.3 but shouldnt need it anyway
On CentOS 7 (company boxes so cannot change). Laravel builds stopped working last week with Composer 1.
Upgraded to Composer 2.3 and upgraded to PHP 7.3.
Began getting the following:
'Connecting to a ...
0
votes
0
answers
52
views
calling job method from Queue::before Laravel
ShouldBeUnique only available on Laravel 8 and newer. But I'm still using Laravel 6. So I'm trying to implement the same functionality;
<?php
namespace App\Jobs;
use Illuminate\Support\Facades\...
0
votes
0
answers
187
views
use policy as condition on query builder laravel
I have this code
$userSpacesTimelines = $user
->spaces()
->select('spaces.id', 'spaces.uuid', 'spaces.slug', 'spaces.privacy_type')
->with('...
0
votes
0
answers
149
views
Laravel auth guard check fails with valid auth cookie
The background is I'm updating a Laravel project using Laravel Shift and currently doing the jump from 5.8 to 6. The authentication has broken and I've troubleshoot it to the point where I'm not sure ...
0
votes
0
answers
18
views
How to make the query in Laravel (6) more faster and efficient?
I'm fetching a lot of data approximately 50,000 to 80,000 or more are being fetched.
$sqlmain = DB::table('lending_payments')
->select(
'lending_loandetails....