Category "laravel"

Fatal error: Array and string offset access syntax with curly braces is no longer supported in php 8.0 pkcs5_unpad

I got this error after copying code from a tutorial. It's deprecated and I tried resolving it: Array and string offset access syntax with curly braces is no lo

laravel get error of Call to a member function prepare() on null

In Laravel I have got this error, while inserting a record in my MongoDB database. Call to a member function prepare() on null namespace App\Http\Controllers;

Missing required parameter slug, laravel 8

i have route to get detail data.. but it turns out missing required parameter, i'm using slug as my parameter Here's my route: Route::group([ 'prefix' =>

blocked by CORS :The 'Access-Control-Allow-Origin' header contains multiple values '*, *', Laravel8

Access to XMLHttpRequest at 'http://localhost:8000/api/objectives' from origin 'http://localhost:4200' has been blocked by CORS policy: The 'Access-Control-Allo

[Vue warn]: Error in render: "TypeError: visitor.messages is undefined"

I have a parent table in laravel, I am able to access the data of its child in vuejs i.e the parent table visits and its child is messages so to access the mess

Vue 3 checkbox component does not work in laravel as checkbox (Accept terms) situation

I'm working on a laravel 9 project that uses vue 3. For each form input has been made field components.Everything works fine except registration checkbox (Accep

How can I set option value selected in v-select in vue.js 2?

I am trying to set option selected where option value is 1. But I am getting in trouble when using v-select from vuejs. This is how I am trying to do - <v-

LogicException: You must define a binary prior to conversion

snappy.php get this code 'pdf' => [ 'enabled' => true, 'binary' => env('"C:\Program Files\wkhtmltox\bin\wkhtmltopdf-amd64.exe"'), 'timeout

Class 'NunoMaduro\Collision\Adapters\Laravel\CollisionServiceProvider' not found

When trying to install composer in laravel project get this error. Illuminate\Foundation\ComposerScripts::postAutoloadDump @php artisan package:discover

Read email and get attachments from Office 365 mailbox with Laravel

I'm looking for the best solution to read emails and get attachments from Office 365 mailbox to save them on my Laravel application. I've tried Laravel IMAP htt

How to get pivot data in laravel lighthouse?

I use lighthouse package for making my graphql schema (https://github.com/nuwave/lighthouse) But how to get data from @belongsToMany relationship that is stored

How to optionally call mutator in lumen

i use mutator in my model to encrypt id: public function getIdAttribute($value) { return encrypt($value); } but I want the default value to be the original

Retrieve user by Sanctum plainTextToken

How to retrieve the 'logged in' user from a Sanctum token. For logging in I have the following method public function login(Request $request) { if (Auth::at

Retrieve user by Sanctum plainTextToken

How to retrieve the 'logged in' user from a Sanctum token. For logging in I have the following method public function login(Request $request) { if (Auth::at

Laravel 9 serializeDate() Not Working on Other Columns

I want to return json wit all the data with a timestamp datatype turned into ISO 8601 automatically. This should be easily achievable after Laravel 7 but I stil

Laravel installer throws error when creating new project

I am trying to create new Laravel application. I have installed XAMPP and Composer. With Composer ( composer global require laravel/installer ) I have installed

How to upload multiple files in different folders using Reactjs and Laravel

I want to let users of my website upload multiple files that could be in different folders. Using 'multiple' attribute in file input control doesn't let you sel

Target Laravelista is not instantiable

I'm trying to post a comment to my news post using the Laravelista\Comments but I got this error: Target [Laravelista\Comments\CommentControllerInterface] is no

Anchor in Blade Template Not Working laravel

I'm trying to figure out what the problem is. So, I use laravel blade templating for navbar section and I want to add route to my anchor (A href tag). After I p

array_key_exists(): The first argument should be either a string or an integer

Im trying to upload an image in my Laravel app. but have an error: array_key_exists(): The first argument should be either a string or an integer Im using the e