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.0 (LTS) continues the improvements made in Laravel 5.8 by introducing semantic versioning, compatibility with Laravel Vapor, improved authorization responses, job middleware, lazy collections, sub-query improvements, the extraction of frontend scaffolding to the laravel/ui Composer package, and a variety of other bug fixes and usability improvements.

What is new:

  • Semantic Versioning
  • Laravel Vapor Compatibility
  • Improved Exceptions Via Ignition
  • Improved Authorization Responses
  • Job Middleware
  • Lazy Collections
  • Eloquent Subquery Enhancements
  • Laravel UI

Resources:

1918 questions
0
votes
1 answer

Laravel 6 steam auth - How to store?

Im trying to grab user information with this package: https://github.com/invisnik/laravel-steam-auth But im a completely noob to laravel atm. How do I store the steamID64 in the Auth::user() field named 'steamid' My following handling atm: public…
Kh4zy
  • 105
  • 1
  • 3
  • 11
0
votes
0 answers

my application Laravel 6 does not want to save items in the session properly

I have save in the session but for some reason the session only saves after insisting on sending the item to the session. If I don't insist he won't save. In some cases it even saves on the first attempt, but usually it doesn't. What can it be? this…
0
votes
1 answer

Can't send requests from frontend to my laravel beckend because of CORS

i have a strange problem. I am using laravel as my beckend and from the frontend i am trying to send a request to my API, but it is on another server, so i used laravel-cors for CORS. But i am still getting Has been blocked by CORS POLICY no access…
NirSaban
  • 1
  • 1
0
votes
1 answer

Laravel 6.12 seeding factory don't see states

As usual the project needed seeds. And as usual I create a UserFactory, set it up, added to DatabasesSeeder and caught a error. InvalidArgumentException : Unable to locate [models] state for [App\Models\User] but the default factory (I mean…
Tig
  • 38
  • 4
0
votes
3 answers

Pass array with laravel route

My Route Route::get('complete/{purchase_id}/{failed_purchases?}', 'Controller@success'); My Controller $failed_purchases = []; for($i=0 ; $i < 2; $i++){ $failed_purchases[] = [ 'reason' => "failed $i" ]; } return…
JIJOMON K.A
  • 1,290
  • 3
  • 12
  • 29
0
votes
1 answer

Laravel 6 - Change routing url

Im fairly new to Laravel, running version 6 atm. I have made a working feature that any registered user can edit their profile. My issue is that I dont like the url being shown to the user like: localhost/profile/16/edit 16 = userid Route…
Kh4zy
  • 105
  • 1
  • 3
  • 11
0
votes
1 answer

Laravel public/js/app.js huge (1.5MB) for simple app

I followed this tutorial https://youtu.be/IyM4uH2fhMU to get basic Laravel setup with auth functionality with a bootstrap preset. After inspecting my files i saw the public/js.app.js being about 1.5MB. My question is, is this normal? I think it is…
0
votes
2 answers

Laravel 6.x : Update method in UserController

Hello everyone I allow myself to come to you because I am faced with a problem indeed when I want to implement the update method in my user controller it does not work I explain two. When I go to my edition view of wrestling games, my data is good…
0
votes
0 answers

Laravel relationship between three table using ORM

Here are my db table design. in my expense table has two foreign key which is connected to project table and category table. I want to show category name in my project Model . how can i make a relation between this tables??? Note: Only expense table…
0
votes
1 answer

How to fetch old value in edit page for dropdown with inpute text field in laravel?

This is my output https://i.stack.imgur.com/VALXP.jpg, I am not getting the selected value. Basically here is two fields One is drop down and another is input field how can I get this selected value if value is selectedor if value is inputed then…
Neeraj Tangariya
  • 1,159
  • 1
  • 17
  • 29
0
votes
1 answer

Weird Laravel Auth Attempt Always Return False

I encountered this annoying error when using custom LoginController, where the Auth::attempt always return false. I tried every solutions posted online but nothing works, any idea whats happening in this Laravel6 application ? public function…
ira
  • 534
  • 1
  • 5
  • 17
0
votes
1 answer

how to fix duplicate asset path in laravel 6?

when i load the page there's no error at all in the console. but then, when i saw the url of the css and javascript. it got asset path appended twice e.g
sasori
  • 5,249
  • 16
  • 86
  • 138
0
votes
0 answers

How to attach more the role to same user?

I can add only one role using : $user->attachRole($request->role_id); But I need to make role accept being admin and up-loader in the same time for example. This is User controller public function store(UserRequest $request) { …
shaza
  • 37
  • 11
0
votes
0 answers

trying to enable php_fileinfo extension

i uploaded a laravel project on shared hosting -ssh not available- i configured it the front-end worked successfully, registration entries didn't work and got this error " Unable to guess the MIME type as no guessers are available (have you enable…
ahmed
  • 23
  • 6
0
votes
0 answers

Generate New PDF which uses existing PDF as a background template in LARAVEL using FPDF & FPDI packages

I am working in LARAVEL 6.8. I worknig on to generate New PDF which uses existing PDF as a background template. I have tried FPDF & FPDI packages but I couldn't find a way to add data in it. Below is the code which I have tried but this simple code…
always-a-learner
  • 3,671
  • 10
  • 41
  • 81