VUE Model and Laravel Forms

Hi, I'm trying to use vue-model attribute with laravel Forms like this: Form::text('name', null, array('v-model' => 'record.name')) The attribute is not as...
Vue
3
4

How to migrate a testing database in Laravel 5?

I have setup Codeception and Laravel 5 to work. And they work. But now, I want to run codeception with a testing database, not local. So in functional.s...
General
7
127

Model form binding relationships

I have forms in an admin panel to edit records and I bind by Model to the form so it automatically sets the default value to that of the models field. I have a plots...

Best way to share API methods with controllers?

Hi. I'm just thinking about the "best practice to share API methods with controllers" and end up with the following: Create a helper class whi...

Application structure multiple providers

So I’m building a system that connects to multiple HR-applications. So I was thinking about using the Builder (Manager) pattern, like socialite is doing. So you can say t...

How to get auth user on ajax call?

Hi. I'm trying to implement a simple "I like this" functionality to be able to let users like articles. So the ajax call will pass the corresponding articl...

Access denied to database on Forge

Hi all I have a really odd thing happening on one of my servers managed by Forge. I have created my server using forge and then created a site, everything was workin...

how can modify the errors' messages from english to french

Je suis en train de développer une application français, mais les messages d'erreurs s'affichent en anglais. J'ai essayé de changé les deux valeurs 'en' dans le fichier...

Use Vue in a Laravel package??

I'm making a Laravel package that is heavy on front end stuff and would really like to not have to write all the JS myself. Its a package for development only. Would it be...
Vue
3
15

Querying relationship models

Hi lets say we have users and posts models, and each user has many posts how can i get all posts that belong to users whose name is like '%user%'? thank you...

Learn angularjs

Hey, What is a good place to learn angularjs? Something like laracast? Thnkyou!...

Compile vendor files

Hi all, My Laravel install is very slow, simple API request take 500ms~1s ! I ran a diagnostic with backfire and found out most of the loading time was caused by aut...

How to mock a class with dependency injection

class DummyController extends Controller { private $request; public function __construct(Request $request) { $this->request = $request;...

Accessing morped model items reversible

Hi all, im trying to implement customers claims / reports to existing app. User can create report for product or employee. Imagine this DB structure:...

Elasticquent with L5 not installable

So I would to do some work with Elasticsearch and Laravel5. I am following this guide:...

Create registration functionality in L5.2 existing app

Hello, I am working on a app which is based on Laravel 5.2. Now I want to create registration module in my app which includes form wizard(step by step form). I have...

Can't redirect user after registration

I created RegisterController to register new user with some data. then I used a method in that controller. I want to redirect that user to home page after successfull regis...

postRegister Redirect & Validation

Why does my code when I click register go back and give me validation errors for f_name l_name & mobile? - No data is being submitted to the DB: Auth: PostRegis...

Can't use php code into forum discussion

<?php public function delete($id = null) { // If an ID is passed to the method, we will set the where clause to check // the ID to allow developers to si...

Cascade softdelete

Hello, How could I make sure that when I delete for example a school all employees that are attached to that school are deleted aswel? So how could I use casc...
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