Category "laravel"

Hourly cron Job Excuting 60 times

I am trying to send an email hourly using the Task scheduler in (laravel) framwork, the command I am typing in the kernal.php: $schedule->command('cron:activ

SQLSTATE[HY000]: General error: 1 table posts has no column named *

I'm actually new to Laravel and I'm trying to build a basic social network with this Framework. For this project, I created a page called post which users can a

dockerizing Laravel + vue

Trying to migrate my Laravel and Vue code into docker but I am getting an error building the Image This is my docker file # dockerfile FROM php:8-fpm #

Create Artisan command with option that must specify a value

Laravel's documentation says (emphasis mine): If the user must specify a value for an option, you should suffix the option name with a = sign… But then

Sub-Domain Laravel problem cannot open it in browser

I wanna ask about Laravel. I just learn about subdomains in Laravel. And I opened www.myapi.com in my browser but it showed site not found, can anyone help me

keith-wood Signature not working on production

jQuery UI Signature working on local but not working on live server javascript: var sig = $('#sig').signature({syncField: '#signature64', syncFormat: 'PN

VueJS i18n - How to change the variable prefix in translation files

I'm doing an app using Laravel inertia and Vue, we wanted to add i18n to the app and use the same translation files for both laravel and i18n, the problem is th

Laravel Spark - Defining a free plan

I am using Laravel Spark Next and I am trying to create a free plan. My application is charging users "Per seat" (# of projects) My application, however, will a

Laravel Docker Call to undefined function MyActionFunction

I'm new to docker and laravel. I'm trying to dockerize a laravel application, the source code is not mine. I used Sail for local tests, but now I want to build

Google API Gateway: Authorization Header not forwarded

I have a google cloud api gateway deployed to send requests to a cloud run service. The cloud run service hosts a laravel docker container image and to authenti

Unable to create lockable file - Laravel 8 & PHP 8

I'm stuck in a Laravel project, I've been using laravel a lot of years and never happened this. I'm using Vagrant (as always) and only happens this with PHP 8,

How to create custom column for polymorphic model and without model id in Laravel

I have a model to take the polymorph association "Qualification." Qualification: - id - model_name - name - value The Laravel documentation said th

Run Laravel migrations on just one server (like ->onOneServer() for scheduled cronjobs)

I'm running a Laravel app on multiple servers at the same time. It's running in a Docker image. Each time I deploy some code changes, Docker image is restarted

Show list of registered users base on current month using laravel

Im new to laravel and im tryin to learn the fundamentals of it. My question is how can I display all the registered users that is registered only on the current

Laravel whole batch is cancelled if one Job fails

I'm working on a Laravel project that uses the Batching feature to batch a bunch of Jobs into a Batch. In my context, I have around 50 jobs in a batch, each job

Laravel 9.x and MySQL how to issue an Update on millions of records

I have a project where certain records in a table will "expire" after so many days. I use soft deletes so basically all I have to do is set the deleted_at colum

How to create foreign keys in Laravel without errors

I'm trying to create foreign keys in Laravel. However, when I migrate my table using Artisan, I am thrown the following error. Schema::create('billing_transacti

Laravel same route for different middlewares

I have problem with routes and middlewares. I have 5 middleware roles. Administravimas, birstonas_biblioteka, druskininkai_biblioteka, birstonas_registratura,dr

How to fix Call to undefined method App\Models\TableName::factory?

I have created a seeder that populates data in Laravel but was having a BadMethodCallException Call to undefined method App\Models\Project::factory(). Why is th

how to solve laravel/horizon v4.3.3 requires ext-pcntl problem

I'm using Windows operating system. I've also tried with these solutions available here: link 1) PHP pcntl module installation link 2) How to install PCNTL exte