Questions tagged [laravel-8]
Laravel 8 is the 8th version of the open-source PHP web framework created by Taylor Otwell. It was released on September 8, 2020. Please use the [laravel] tag for general Laravel-related questions.
laravel-8
7,318
questions
0
votes
0
answers
6
views
Set laravel/valet and PHP working on Win10 not working, php not loading even with XAMPP
I have been struck with issues after issues when i try to get a php based website running on this computer.
I have read so many articles and tried to figure what could have been missed, am also a ...
0
votes
0
answers
43
views
Can Migrations change project into production?
I would like to know if I make changes into my laravel project in localhost (I downloaded the project from the hosting) the project from the hosting also changes
I have been doing some changes into ...
0
votes
1
answer
33
views
Laravel migrations create table column with dot in colum name
I have a table in SQL Server database where a column has a dot in its name. When I first created manually the table I had no problems doing it, but now that I'm changing the db server I decided to ...
-2
votes
1
answer
38
views
Laravel 8 Unparenthesized `a ? b : c ?: d` is deprecated
I'm getting an error in Laravel backend
The line that is giving error:
<?php echo Form::select('percent', \VanguardLTE\Shop::$values['percent_labels'], $edit ? $shop->percent : old('percent')?:'...
0
votes
0
answers
39
views
Troubleshooting '400 Bad Request' Error in Mailchimp addStoreProduct API Call
public function test(){
require_once '.././././vendor/autoload.php';
try {
$client = new \MailchimpMarketing\ApiClient();
$client->setConfig([
'apiKey' => env('...
1
vote
0
answers
42
views
Request failed with status code 419 -Nextjs and Laravel Sanctum
I have two projects, Laravel 8 and Next.js. Everything works smoothly when I send a GET request, but I encounter an error when I send a POST request. I've attempted various solutions, but the issue ...
1
vote
1
answer
41
views
Bug with Laravel Eloquent query buldier
I found a weird situation when nesting in a query a where with a orWhereNull.
The result is returning rows with values that are neither null nor correct
This is the code:
$query = Document::where(&...
-2
votes
0
answers
54
views
laravel 8 Two table column match, query in a controller [closed]
Database One table row ---
id
District
1
Dhaka
2
Ctg
3
Comilla
Another Table row have --
id
Library name
1
Comilla
2
Ctg
3
Dhaka
How i query Data in a laravel 8 Model, Controller, Blade ...
-1
votes
0
answers
32
views
Select2 not loading options on initialization
I have a select on my page and it has options in it. When I initialize the select2 the options are not loaded.
<select class="form-select form-select-sm" id="select-user-1">
...
0
votes
0
answers
14
views
Reset password link in Laravel does not refer to the specified guard
In my application, there are some guards (i.e. auth, student, teacher). I want to make users from each guard to be able to reset their password. So I made different reset password controllers for each ...
-1
votes
1
answer
48
views
Laravel error handling for authentication system
I want to implement the laravel build in authentication system breeze in my laravel project. But when I clicked on the login or register the css is not working and also it shows a error:
Mix manifest ...
0
votes
1
answer
17
views
Backpack laravel , How to preview files/upload_multiple?
I am trying to upload multiple files (backpack:5.x )
Files selected. After save, they will show up above. this is the message I am getting after uploading files. How to preview files after upload?
$...
0
votes
1
answer
33
views
401 Unauthenticated error while using laravel sanctum
I'm using laravel framework version 8.54 and sanctum version 2.15
Creating apis
Login and get User
On local environment it works fine but on production it return 401 error
Configurations
Added ...
-2
votes
1
answer
33
views
I get "Call to a member function setTimezone() on string" error after updating Laravel, how can I solve it?
I have this echo in my blade...
$sale->order_time->setTimezone($venue->timezone)
...and all I get is a "Call to a member function setTimezone() on string" error. This code used to ...
0
votes
1
answer
52
views
Laravel, Nuxt config for headers (cors)
error:
http://localhost:8000/sanctum/csrf-cookie' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource
...