gouseferoz gouseferoz
11

Getting 500 Unable to handle requests

Hello Everyone, Recently I am experiencing this 500 Unable to handle request error when i try to open a particular page. And when i refresh the same page couple of t...
General
11
122
cipa cipa
10

How do I refactor 2 similar controllers?

Hi, I have 2 similar Controllers that have similar methods and also have similar helper functions that currently are not in a separate Helper file. //...
Laravel
10
143
LadyDeathKZN LadyDeathKZN
10

Run same code in several functions

Hi all :), I hope you all doing okay with this COVID thing going around. I have never done this, and I am not sure what I am missing. I don't want a repetion of this...
Laravel
10
113
niyo niyo
10

404 page not found in laravel

my problem is i created this page in my project but its not working i used all the steps in Handler.php also created a forlder for errors name my file 404.blade.php but its...
Laravel
10
88
YasserHaddad YasserHaddad
10

File Put Contents Error

Versions: php: 7.2.0 laravel: 6.18.1 The system on the server is: Centos 8 So I am working on a e-commerce project in laravel, using laravel 6 and I am...
General
10
125
Sven0188 Sven0188
10

Laravel 5 - Copied Entire Project to Sub-Folder | 404 Error

Good day Everyone, I have made a copy of my 100% working Laravel web app on another domain/host. On the new domain, my Laravel projects sit in a subfolder for exampl...
Laravel
10
108
theUnforgiven theUnforgiven
10

Updating computed within Vue

Hi everyone, I have a question I can't seem to find a suitable answer to, or I'm not understanding. So I thought I'd come to the lovely community of Laracasts.......
Vue
10
81
deepu07 deepu07
9

Multiple query is giving empty data

if (true) { $musicDepartment = $departments->where(function($query) { $query->where('type', 'music'); })->with(['stu...
General
9
109
Boubou Boubou
9

Is whereIn possible with Eloquent on array with a null value?

Hello, I would like to know if eloquent can read a null value in a whereIn statement because at the moment I cannot manage to get this going: In my table, I h...
Deekshith Deekshith
9

Restrict laravel vimeo livestream url only for one user at a time.

I have implemented vimeoe livestream in authenticated route of laravel and now what if someone shared his credentials to other users so i should avoid this is there any way...
hjortur17 hjortur17
9

Help with json_encode

Hi, I'm using json_encode to generate for me an object for each product I'm scraping from a website. But when I use json_encode it's changes some...
obi101 obi101
9

Eloquent Accessor

Thank you in advance for your answers. So I have Eloquent model Called "enseignements" with a Accessor public function getDureeaAttribute() {...
chesterBot chesterBot
9

How to create duplicate of a laravel collection

Hello guys, I have a laravel Collection with relations and there can be 2k-3k rows in relation, I m getting some rows from this relation to make some calculation and then d...
Laravel
9
202
jotiduli jotiduli
9

Json response to Blade

Hi there, Can anyone tell me how to pass a json object into view? I have tried converting my response into an array, collection but cannot pass a value into blade. Im using...
Laravel
9
136
Deemo Deemo
8

Best Practise

Hello all, I’m looking for a best practice answer for this problem. I am building a system which uses Laravel Auth. Once a new user has registered I want to...
connecteev connecteev
8

How to create a tailwind.css file from a config file

I have a tailwind.config.js file.I am looking for a command to generate a tailwind.css file, using the config. I need to do this in a programmatic way. There has to...
t0berius t0berius
8

laravel eloquent eager loading problem (only load by specific search)

Here are my models: Category: public function subcategories() { return $this->hasMany('App\SubCategory'); } SubCategory:...
madhums madhums
8

Missing required parameters for [Route: users.show] [URI: {locale?}/users/{user}]

Am facing error in user/ index.blade.php because of locale (localization) URI . if any one help me to fix Pleae find below code routes/Web.php Route::...
Laravel
8
109
TerrePorter TerrePorter
8

DataTables and Laravel

I am trying to set up a DataTable's in Laravel but for some reason it doesn't do the XHR request on the browser. $('#userList').DataTable({ '...
Create a New Discussion Button