I want to send a stringified JSON to one of the fields of an API request like following: Decoded: https://api.some.com/foo/bar?a=788&b=My Name&c=[{“name”:”pejman”},{“Some”:”thing”}] I want …
Tag: laravel
Trying to get property of non-object when trying to select a value from the result
I have a problem with the function. I make a request to select from the database, the selection is normal and there is a second code that should take the value of the price column from the result, but …
LARAVEL “mkdir(): No such file or directory” SEND MAIL [closed]
I’m trying to send email from laravel, but I keep geting this error: mkdir(): No such file or directory The code is: Mail::send(‘resetpassword’, [‘data’ => $user], function ($message) use ($…
Store array from vuejs into a SQL column json but store null
I created a form that will save data in my users column of my table pack. My form data is stored in my user variable. During my axios request, I push the data from the user variable into my users variable which is an empty array. The data stores well in my users variable which is an array. Then, I
Html::style time out
everyone. I use laravel6 (v6.18.2), and run php artisan serve. I visit this page, then it display Maximum execution time of 60 seconds exceeded Here is my code : <!– something –…
Laravel AJAX: insert with loop (looping DB table row)
I’m new in Laravel and Ajax, and I have working code (see below). I have 2 tables, criteria and rating. I want to query first the table named:criteria like (select * from criteria where level = 1), …
laravel BelongsToMany pagination
i have 2 model 1 – category with parent and child class Category extends Model { protected $primaryKey = ‘id’; public $fillable = [‘slug’,’title’,’icon’,’parent_id’]; /** * Get the index name …
Laravel error Declaration of AppExceptionsHandler::report(Throwable $exception) [closed]
I’m using Laravel 6 and getting the following error when deploying to a shared host running PHP 7.3: AppExceptionsHandler::report(Throwable $exception) Declaration of AppExceptionsHandler::…
How to join two tables with a pivot table using Laravel?
I have these three tables: tbl_lista_contactabilidad tbl_equipo_postventaatc users ————————- ———————– —– id id id …
Group by one column and sum another column in a Laravel collection
I’m faily new to PHP & Laravel, and i’ve been given this task: I have a collection that looks like the one below: and i have to filter each element based on the cardId parameter, add (+) the cardQuantity parameter, and then return new, distinct arrays that look like this: How does one can achi…