Prop 'options' requires default value to be set

please can any one help with that problem <template> <div class="btn-group"> <li @click="toggleMenu()" class=&...
Vue
2
9

auth()->user() does not have methods in User model(laravel-ide-helper)

Hi I have trouble with autocompleting methods in User model when I use auth()->user() so I have a method foo in User...

Multiple Form update

I'm looking for a better way to store multiple forms update. E.g: in one page I have multiple forms each one have a hidden input with its type. <input typ...

laravel session array (delete entry)

Trying to store the last visited products into an array inside the user session: //check if we would reach 5 items if(count($request-...

Auth debug bar showing middleware not in artisan route:list

In the debug bar, a page loaded is showing "web" and "api" being loaded. However, when I run php artisan route:list It doesn'...

Laravel 5.6 - How to authenticate API using sessions for same folder SPA?

I have a React SPA in the same Laravel project. The login/signup/logout and all other js views are in the js folder and use axios api calls for all POST/GET re...

JSON structure for form-data in Laravel API

Hi. I have a Laravel API that receives an file and additional body data from a JavaScript client. How should the JSON data format look like when I send the data?...

laravel - vue, no hot reload

Why hot browser reload is not working with a laravel vue installation ? If I install a fresh vue app, the browser refresh on save with npm run dev. But with t...

Laravel Nova diffForHumans DateTimeField

Hello. I have field last_active on users, I want display time with diffForHumans or time_from_now from Moment.js. How I can do it? Now I just use:...
Nova
0
5

Exception when running "npm run watch-poll" after upgrading to 5.7

Hi, I've just upgraded from Laravel 5.6 to 5.7: followed the upgrade docs and implemented all changes using the GitHub comparison tool. I'm not using Vue but...
Mix
6
23

How to show in Vue tab

I have a categories table with below picture....

How to auth my Laravel API for my IOS app

Hi , i have to develop the backend of an IOS app and i'm concerned about some stuff : To use my app you have to be logged in (create an account) I want to kno...

screencast software

Can I know what screencast software do u guys know that are good? Do you have some recommendations?...

Attaching relationship data to model before saving it?

Hi, I have a model discount with a discountcodes relationship, a discount can have many discount codes and codes belong to a discount, when creating it is it possible to al...

How to write code in laracast?

I want to write code that cleanly. So nice views. How can I do that?...

How to keep old model's data until new changes are approved ??

There is a model called Book, a book can have many chapters ( one-to-many relationship ) each chapter has many sections ( one-to-many relationship )....

Dusk environment

Hello all! I'm building a new app using Laravel 5.7, and started recently to use Dusk for testing, coupled with Jenkins for CI. My main problem at the moment...

Do modified collections maintain the same keys as original?

I have a collection of objects that I will do a filter method on to get a subset of objects from the original collection. For argument's sake, let's say I want to delete t...

Mail::send not working in lumen

I am getting this error Unable to resolve NULL driver for [Illuminate\Mail\TransportManager]. on Manager.php on line 62. i followed this link...
Lumen
12
13

getting common methods outside controller

Hi everybody, I have a PostContrller, I use this one to perform CRUD operatins and more with the Post Model, inside this controller I call to the method slugify() which I p...
Create a New Discussion Button
Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels