Can I replace my code for where json array contains from array with something better?

So I search my model for a column which I have defined the cast as array. It's a lists of ID's and I got a list to match it against, if it got a ID...
03

Local files changes not reflecting on Production

Hello all, I recently moved my local project to production. Anytime I make any file changes locally and push to production it doesn't update. I hav...
07

Laravel hasmanythrough but with manytomany

I have looked at the previous responses on the topic but I'm not sure it works for what I've set up. I have two pivot tables (unfortunately, I didn...
08

Has-many-through-many?

What is the simplest way to achieve this relationship query in Eloquent? I have many boards, which each may have many roles, which each may...
15

Checking if user role is admin

I'm checking if the user is an admin my code : @if(auth()->user()->roles()->name == 'admin') //...
05

homestead vagrant box and homestead itself

I am so confused and don't know how they work together I have homestead vagrant box (v6.1.0) and laravel/homestead (v7.14.2) How do t...
03

Dropdowns in table not working

Hello all, I'm relatively new to Laravel. I have a table that lists staff members and their roles; these roles are shown for each user in the form...
05

basic $emit() function not working

Im 2 weeks old when it comes to vue.js im struggling since couple of days ago to make show / hide functionalities for my custome page manager compo...
04

How to set default value when storing a data

Hello, I'm new to laravel, can I ask if how to set a default value when storing a data?...
06

how to display multiple images from database to blade view.

i have images saved to the database table, now i try using the the explode funtion to fetch the images to the view for the view i have this...
12

DateTime Picker

The problem I am having with the Datetime picker is that the calendar will not show/dropdown. All I have is the text box and when you click on it,...
07

Updating from 5.5 to 5.6 resulting in "A facade root has not been set"

Hey guys! After upgrading from 5.5 to 5.6 I am getting some curious errors I've never seen before. "Fatal error: Uncaught Runtim...
09

Model auto load

composer.json "autoload": { "classmap": [ "database/seeds", "database/factories", "app/Model...
04

Polymorphic relation results in "Column not found: 1054 Unknown column "

I have a polymorphic relationship on my model but some records may be null. To explain better here is the snippet from model showing morphTo:...
01

Using axios, lodash with vue in Laravel

Hi, this will be my first laravel app using vue instead of jquery, I want to use axios and lodash libraries inside my laravel application using vue...
01

How to show BelongsToMany on resource update screen?

I have 2 resources Roles and Users. Between. There is many to many relstionship between them. As I can see in documentation (...
01

Encrypting model data

I am working on a new project that stores medical information. For security I thought it would be cool to store all the personal data in the databa...
53

Why laravel cookies are so big ?

Hi! I just changed the way of using the session on my website. I was using the file session driver system, but my website was having too muc...
02

Blade naming conventions?

Hello all - I am quite new to Laravel and am just now trying to start building up an app in 5.1. I am curious as to whether there are...
08

How to bulk edit in Nova

I know you can set a boolean (or fixed field) as an action (such as deactivating) How would one bulk edit - like I have a resource of Items...
06