Category "laravel"

Why "Class 'GuzzleHttp\Client' not found" even after Installing it in Laravel?

I've been reading answers from all the questions related to GuzzleHttp\Client but situation is getting worst. I am trying to send E-mail Updates to all of my Ap

laravel MVC execution flow

I am new to laravel framework. I am trying to edit laravel webapplication. Website is running in EC-2 instance of AWS. I am doing SCP with filezilla. I found

Command "serve" is not defined (Lumen-Laravel)

So, i try to install the lumen restful api. Based on tutorial, i have to "serve" on php artisan. The command be like: php artisan serve sample_api sample_api/p

Laravel Get Days In Month From Month Number?

In Laravel Application I have month number like 01, 02, 03 upto 12. I want to get all days in this month. I cannot use daysInMonth() as I do not have a date all

laravel sanctum Route [login] not defined

I am trying to get the current user in my laravel vue application. And whenever I trie to get it i am getting this error: Symfony\Component\Routing\Exception\Ro

Laravel Database Strict Mode

I'm little wonder please help me out. My query is :- Invoice::join('orders', 'orders.invoice_id', '=', 'invoices.id')->groupBy('invoices.id')->get();

How to get the response data in laravel unit testing

I have been trying to work with laravel unit testing. What I wanted was how to get the response data of original. public function testProducts() { $respons

find in set in laravel ? example

I am new in laravel. My query is i need to find out value from comma separated field. Here is my table: tags_value id tags 1 css,html,php 2 php,java,css 3 java

Laravel views are showing from cache on one server but works fine on other server

I am working on Laravel(5.4) project. I am facing an strange issue regarding the laravel views. My all views are working fine but some views are always showing

Redis connection [] has not been configured. - Connection property passed is empty

I am implementing redis backed queues but all of a sudden facing the above issue. Looks like $connection variable is empty when it is passed to the Horizon.php.

laravel 5.6 bulk inserting json data

I am trying to build an API to store and retrieve MCQ exam papers. I am using laravel resource class to send handle Json data. I need to insert 40 records into

best way to store error messages in Laravel (session or variable)

I'm trying to find out what is the best way to store error messages (due to wrong parameters for e.g). Assuming I'm declaring the accepted parameters in the Co

Laravel detach not working on belongsToMany

I have this model: Company Which has a relation: $this->belongsToMany('App\CallList', 'call_list_companies', 'company_id', 'call_list_id') And vice versa: Ca

How to publish raw json message to another application queue?

In my situation, I only need publish message from laravel application to available rabbitmq queue which created in another symfony application. I installed this

OctoberCMS / Anonymous Global Scope

I am use OctoberCMS Rainlab.User plugin to manage authentication. I have various models and that belongTo User. How do i set up an anonymous global scope on eac

Xdebug in Laravel is not working with VSCode

I'm trying to debug a Laravel project in Ubuntu 20.04. There is a problem that debugger doesn't hit breakpoint just in Laravel project but in other projects Xd

Laravel ServiceProvider vs. Middleware

I've got a question regarding Laravel. Where is the difference in using ServiceProviders or Middleware in Laravel? So I mean, when do I use ServiceProviders and

Laravel with App Engine Standard Class 'Facade\Ignition\IgnitionServiceProvider' not found

This is driving me crazy second day. I'm new to Laravel and trying to get Laravel 6 work on Google App Engine Standard. Tried: This tutorial and other ones, but

Laravel validation, dynamic date

Is it possible to have a dynamic date for a commitment date? For example, we can hire a person 1 year in the future and commitment dates start in 2008 minimum

Cannot access mysql database after migrating from Homestead to Sail

I am trying to migrate a Laravel 8 project from Homestead to Sail. Sail seems to be set up correctly since I can get to my project's website locally. But I can'