Category "laravel"

How to switch Vue.js to production mode in Laravel?

Since Vue.js is comes already installed in Laravel, I'm not sure how to set it to production mode. When I launch my website I get the message in console: Y

How to trigger 'joining' in presence channel?

I am trying to use a presence channel to see users come and go. With this purpose, as documentation recommends, I wrote this code. And I receive this. But h

Why do I get null auth user inside middleware?

The global middlewares, the ones which are run for every request on every route: protected $middleware = [ \App\Http\Middleware\CheckForMaintenanceMode

"Database hosts array is empty." after deploying Laravel project on AWS Elastic Beanstalk

I deployed my project to an AWS EC2 instance using Elastic Beanstalk. I used this tutorial https://www.youtube.com/watch?v=ISVaMijczKc as a reference while depl

"Call to undefined function str_slug()" in Laravel 6.0

I've upgraded my laravel 5.8 project to 6.0. It has upgraded successfully but when I'm trying to run the project or installing another package to my project it

Laravel UUID generation

I am trying to generate a UUID (not as primary key, just generate one) with the laravel-uuid package. The docs are pretty straightforward, so according to the r

Laravel - How to properly generate unique slugs from article titles?

I need to generate unique slugs based on titles of articles. For matching slugs I want to append a number to the end to make them unique. I made this function b

How to make a migration in laravel module?

In my Laravel project, I use nwidart package for making modules. Now I want to add deleted_at column to an existing model. I should make a new migration in my m

E: Package 'mysql-client' has no installation candidate in php-fpm image build using docker compose

Im fairly new to docker and so im trying to learn more about it using a laravel project, im following this tutorial: https://www.digitalocean.com/community/tuto

Docker. Communication between Laravel containers

I have a project that I am trying to develop with a microservices approach. I prepared the APIs on two separate microservices and completed their tests. When I

Laravel 8: Attempt to read property "id" on null

I am facing this error 'Attempt to read property "id" on null' in Laravel 8. It was working fine before but in my view I changed $user->id to $user->profi

Laravel Datatable addColumn returns ID of one record only

I'm trying to use Yajra Datatable to integrate a DataTable in my website. I was able to render the table but run into a problem. In the addColumn field where i

Laravel Pagination links not including other GET parameters

I am using Eloquent together with Laravel 4's Pagination class. Problem: When there are some GET parameters in the URL, eg: http://site.com/users?gender=female

Eloquent makes a lot of queries

I just started playing with Laravel 4 and Eloquent. I have a blog table and lots of other related tables to it: blog <- main info about the blog record blog

Eloquent makes a lot of queries

I just started playing with Laravel 4 and Eloquent. I have a blog table and lots of other related tables to it: blog <- main info about the blog record blog

Choose Amazon S3 storage class using Laravel Filesystem

Amazon S3 has different storage classes, with different price brackets. I was wondering if there's a way I can choose a storage class in Laravel's Filesystem

Payoneer integration in laravel

Need of Payoneer integration in my project. I am beginner in Laravel and could not understand how to integrate Payoneer REST API it in my project?

Laravel video upload - issue with ios device, mime-type application/octet-stream

I created an API to upload videos. when I upload a video from postman its works fine but when I use the same API with ios device file extension missing. Request

Laravel video upload - issue with ios device, mime-type application/octet-stream

I created an API to upload videos. when I upload a video from postman its works fine but when I use the same API with ios device file extension missing. Request

Payoneer integration in laravel

Need of Payoneer integration in my project. I am beginner in Laravel and could not understand how to integrate Payoneer REST API it in my project?