How to get Laravel CSRF value in NEXTJS
I have a Next JS frontend and Laravel 9 as backend. Created APIs and tested them on the postman. All of the API's working fine without any issues. The Problem So I have created a Nextjs file with a form…
I have a Next JS frontend and Laravel 9 as backend. Created APIs and tested them on the postman. All of the API's working fine without any issues. The Problem So I have created a Nextjs file with a form…
I am trying to get DividendYield from a company for the last 20 years using ChartJs in laravel project. The arrays came from HTTP client API. The formula is like that :$dividendPayed / $dailyPrice * 100. The problem i am…
I'm trying to align a div like a gallery through a loop, is there a way to do this efficiently with bootstrap? they just stay one above another. I tried to make more divs, but they repeat the results of…
I installed Laravel 8 with backpack 5.1 and I run php artisan backpack:crud-operation SendNotification I got error: root@9139092f4397:/var/www/khm-hrms# php artisan backpack:crud-operation SendNotification BadMethodCallException Method IlluminateSupportStringable::lcfirst does not exist. at vendor/laravel/framework/src/Illuminate/Macroable/Traits/Macroable.php:113 109▕ */ 110▕ public function __call($method, $parameters) 111▕ { 112▕…
I have this controller method that am using to search users in a given user group using email and name. I have two groups customer and staff, when I search staff it returns customers too. Here is the controller code…
I want to connect redis cluster from Laravel but I am getting No connections available in the pool. My databaase.php looks like 'redis' => [ 'client' => env('REDIS_CLIENT', 'predis'), 'clusters' => [ 'default' => [ [ 'host' => env('REDIS_HOST', '127.0.0.1'),…
My application is working perfectly, but I'm trying to keep my code as simple and clean as possible. I have a Controller that is receiving most of the data automatically, but I have 3 inputs that gonna be added to…
So i have a laravel project with multiple role's (admin, partner, dealer) as a dealer and partner i can download files that are assigned to me using a pivot table. as a partner i can see 1 file that is…
So i am working on a laravel project with multiple table's and pivot table's but i cant attach data to a specific pivot table because it wont accept the name. as a user i want to be able to download…
Code: ` public function up() { Schema::create('subscriptions', function (Blueprint $table) { $table->id(); $table->integer('month',4); $table->integer('price',7); $table->tinyInteger('status')->default(1); $table->timestamps(); }); }` Error: QLSTATE[42000]: Syntax error or access violation: 1075 Incorrect table definition; there can be only one auto column and it must be…