Questions tagged [laravel-6.2]

Laravel 6.2 of the open-source PHP web framework created by Taylor Otwell. It was released in October 2019. Use it in addition to the [laravel-6] tag if your question is specific to Laravel 6.2. Use the [laravel] tag for general Laravel related questions.

What is new in v6.2.0:

  • Added support for callable objects in Container::call()
  • Add multipolygonz type for postgreSQL
  • Add “unauthenticated” method in auth middleware
  • Add partialMock shorthand
  • Allow Storage::put to accept a Psr StreamInterface
  • Implement new password rule and password confirmation
  • Remove unnecessary param passed to updatePackageArray method
  • Add optional connection name to DatabaseUserProvider
  • Remove brackets arround URL php artisan server
  • Apply limit to database rather than collection
  • Allow to use scoped macro in nested queries
  • Added array to json conversion for sqlite
  • Use the policies() method instead of the property policies
  • Split hasValidSignature method
  • Fixed: validateDimensions() handle image/svg MIME

Resources:

229 questions
9
votes
1 answer

Laravel 6: Throttle Password Reset

In laravel 6 the password broker now has the following to throttle password reset (https://github.com/laravel/framework/blob/6.x/src/Illuminate/Auth/Passwords/PasswordBroker.php#L58) public function sendResetLink(array $credentials) { // First…
adam78
  • 9,668
  • 24
  • 96
  • 207
6
votes
2 answers

How can i create own alias for "php artisan" command on windows?

I have seen the documentation for creating own alias but its little confusing. can anyone help me and simply say me what to do? I think it will help a lot of people, because i saw few questions related to this on stackoverflow but it really hard to…
John
  • 301
  • 4
  • 12
6
votes
1 answer

How to Install Whoops in Laravel 6 and Above Versions

I have been Working on the Laravel Framework Since 5.4 Here is the History of Laravel Versions And Error Handlers 4.0 - 4.2 - filp/whoops 5.0 - 5.4 - symfony/error-handler 5.5 - 5.8 - filp/whoops And By the Relese of Laravel 6.0 they have…
ManojKiran A
  • 5,896
  • 4
  • 30
  • 43
4
votes
1 answer

1292 Incorrect datetime value for column 'updated_at'

I've created a table in Laravel with standard datetime columns: Schema::create('lists', function (Blueprint $table) { $table->bigIncrements('id'); $table->string('name'); $table->string('ref'); $table->string('provider'); …
eComEvo
  • 11,669
  • 26
  • 89
  • 145
4
votes
3 answers

Log in on 3rd party website using Laravel Passport

I need to solve the following problem: I created two applications using Laravel. Application A can be reached via https://test.example.org and provides a passport-instance and all user-data (Model: User). Application B can be reached via…
SPQRInc
  • 162
  • 4
  • 23
  • 64
4
votes
1 answer

Where does Laravel store throttle data?

I use Laravel rate limit (throttle). I wonder where it stores throttle data and how I can change the default storage system to MySQL/Mariadb or Redis?
Sam
  • 1,424
  • 13
  • 28
3
votes
2 answers

Laravel Spatie Permissions - user and role relation get only id and name

I'm using Laravel Spatie Permissions to manage roles and permissions in my app. I'm traing to retrieve only Role id and name in the relation between users and roles. My UserResource looks like this: class UserResource extends JsonResource { /** …
Guido Caffa
  • 1,201
  • 1
  • 12
  • 22
3
votes
3 answers

Laravel 6 : Cannot send message without a sender address

why am i getting this error when i try to send an email from the contact from to my mailtrap Error message image Here is my web routes…
Jareer
  • 242
  • 5
  • 24
3
votes
3 answers

How to query- Where In Array Key Value Laravel with Mongodb

This is my database Structure { "_id":"5e4d4d6fc01c0000cc0009bd", "UID":"5e30376327050000b3006cde", "delevery_charge":25, "order_item":[ { "id":"5e2f4a636c630000f20053bc", "Name":"XXXXX", …
Rubel Khan
  • 57
  • 6
3
votes
4 answers

Pass two variable to method in Laravel

i want to find post by slug also in url .. but the comments must be found by post_id Controller public function post($slug,$id) { $post = Post::where('slug',$slug)->first(); $comments = Comment::where('post_id',$id)->get(); return…
Hamad Essa
  • 81
  • 1
  • 8
3
votes
3 answers

Use find() and with() together in Laravel query

I have 2 tables employees and employee_locations. One employee has many locations. I need to find out one employee record with related latest employee_locations record. I wrote below query. $employees =…
abu abu
  • 6,599
  • 19
  • 74
  • 131
2
votes
0 answers

Is it possible, to proceed, the code to other execution if I don't have response within 2seconds?

I have a code like this $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $link); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET"); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Accept: application/json", …
Fil
  • 8,225
  • 14
  • 59
  • 85
2
votes
0 answers

Dynamically set value for a grid column while csv export:-Laravel-admin

I have a user grid it has got a column (status) which is a dynamically created html based on another model value .When trying to export the columns as listed in the grid ,is there anyway to check the model value and set the specified column…
David
  • 380
  • 2
  • 14
2
votes
2 answers

Laravel/docker-compose/redis - Class 'Redis' not found

This project was set up by another team and I'm unable to get passed this one error. Using PHP 7.2 and Laravel 6.2. My docker-compose.yml: redis: image: redis command: ["redis-server", "--appendonly", "yes","--requirepass","Redis.123"] …
Matt Larsuma
  • 1,456
  • 4
  • 20
  • 52
2
votes
0 answers

Laravel 6.2: How to change [from address] field in mail of Laravel

I am using Laravel 6.2 now. I am sending the email using below code. Mail::send('emails.sample',[],function($message) use($subject) { $message->subject($subject); $message->from('test@example.com', 'supplier'); …
WangYang
  • 21
  • 3
1
2 3
15 16