Category "laravel"

Use a Laravel Application alongside another scripts (wp/joomla/...) and remove /public

This is my directory structure: Public_html /app /bootstrap /config /database /public /resources /routes /vendor /storage /another-sctipt I

Why config cache not working on my shared hosting in Laravel 8

I uploaded my laravel site in shared hosting, my site is working well in localhost, but the CSS is not working on the server. I want to clear cache but not run

Access to pivot table field using Vue.js

I started working on a small project using Laravel, and i would like to access to the pivot table to get the position field, that i have in organisation_user (p

Laravel 5: Is there a non-case sensitive way to sort a collection by an attribute?

I'm struggling to sort an Eloquent collection using the sortBy() method. The issue is that the sorting is case sensitive and it first retrieves the uppercase re

PHPUnit gives error: Target [Illuminate\Contracts\View\Factory] is not instantiable

I created a simple test for my new Laravel 7 application. But when I run php artisan test I get the following error. Target [Illuminate\Contracts\View\Factory]

Laravel Schedule not sending email

It's my first time trying to implement Task Scheduling, I'm trying to send automatic E-mails at a certain time: Before implementing my cron I first tested my em

retrieve simple products and product_variation with corcel

In larvel I'm using corcel and with the help of this comment I'm trying to retrieve only simple products and variations of variable products. $type = array('pro

Utf8 encoding issue with Laravel

I have an issue after deploying my laravel website ( that works properly in local ). Some text are not encoded correctly, for example : what should be Joë

Should we make a request to /sanctum/csrf-cookie first, before registration that logs in a user after a successful registration?

My SPA is in the same repository as my laravel application and the documentation states that when using sanctum, your SPA's "login" page should first make a req

PHP Startup: Can't load module 'ext\php_sqlsrv_81_ts.dll' - xampp

I have problem with connectting my laravel project to SQL server database. I'am using xampp with PHP Version 8.1.1. I downloaded appropriate extensions for my p

Show date difference as "20" instead of "20 years ago"

{{Carbon::parse($etudiant->date_naissance)->diffForHumans()}} It appears like "20 years ago". But I want the age to appear only "20"

Failed to load resource: the server responded with a status of 500 (Internal Server Error) when uploading an image

Im trying to upload a picture from my registration form but I get Failed to load resource: the server responded with a status of 500 (Internal Server Err

Unexpected supervisor processes limitation

I’m using Beanstalkd queues in Laravel, controlled by Supervisord. Laravel v7.30.6 Beanstalkd v1.10 Supervisord v3.3.1 Ubuntu 18.04.6 LTS (125G RAM) PHP 7

Cant set up php enviroment in Docker

When I run docker run --rm -v $(pwd):/opt -w /opt laravelsail/php81-composer:latest composer install to install all the composer dependencies, these popped up ~

Pulling updates from Git on running project

I have a laravel app deployed on an apache2 server in an ubuntu VM. It took an awful lot of time to set up, but I would like to make some more changes to the we

Migration Table Creation Error when using Laravel Sail. Information_schema.tables missing

My colleague has created a docker-composer.yml file and has shared that image with me. When I run the container and attach this image, I am unable to create mig

PHPUNIT Test - Expected Status 200 But Received 500

I keep getting status 500 when 200 is expected. These are the files: ExampleTest.php namespace Tests\Feature; use Tests\TestCase; use Illuminate\Foundation\T

Laravel livewire Undefined type 'Livewire\Component'

after i added livewire using composer require livewire/livewire and creating new livewire component using php artisan make:livewire search I keep getting an er

How to remove all roles from the user in spatie/laravel-permission

whats the best or the usual way to remove all roles from a user? I tried $roles = $user->getRoleNames(); $user->removeRole($roles); Return value of App\Us

Vue.js rendering issues with safari

I have a portfolio website written using Vue and Laravel that renders out project thumbnails with v-for. This works completely fine on every browser apart from