Load View from Package

Good day, currently developing a package and i'll like to load a view from the package, please can anyone explain how i can add the view to Service provider and also make r...
Laravel
3
111

Simple Relationship

Greetings pros, I'm getting confused about the relationship of this two. I have Device and Status model. Well at first my relationship was: DEVICE MODE...

How to ceate a laravel package

Hello, I have tried to implement a custom laravel package by following the documenation provided on "...

No Favicon

I am having a problem getting my favicon to show. I have never had a problem with this before, After looking at the usual suspects... I am stumped. Can any of you help me?...
Laravel
4
256

How can I use onWriteConnection() to create new user?

$user = new \App\User::onWriteConnection(); $user->name = \Input::get('name'); //... $user->status = \Input::get('status'); $user->save();...

Can I use storage images visible to my website

Hello All, I am making an app where i need user's sensitive data that i can't put on public folder and so want to put it on storage. But what i am facing problem is...

Best Relation Query

Hello All, I have the folllowing relations setup in my models class Section extends Model { public function employees() { return $thi...

Homestead changelog

Is there a changelog available for Laravel Homestead? I can't find any in the documentation / github. I'm interested in the changes / fixes in the 0.2.6 update....

Polymorphic - Different objects

Hey, at the moment I've got this: battles | id | round | | 12 | 3 | battle_memberships | id | battle_id | crew_id | user_id | points |...

Retrieval from more than one table

Hello, I have the following queries but the result is not correct, I want to retrieve all papers where the 'file_id' is equal to 'id' of table file where the email matches....

Calling methods statically with the scope resolution operator?

I've watched this video (OOP bootcamp series) on static methods and properties. The bottom line was that generally it is not a good practice to use static methods. A...

Two different relationships between the same two tables

Hello everyone I have the following concerns of how to achieve two different relationships between two same tables, the problem is this. a table is record of shipments, the...

Password Validation for Laravel 5.1

I noticed when I navigated to yourdomain.com/auth/register that when you are required to insert a password, Laravel 5.1 has a requirement put in place that requires the use...
Laravel
10
84

Store Eloquent model inside a cookie

Hello everyone. I'm trying to create a simple "latest visited profiles" cookie in which I want to store every profile visited by someone (auth or not is no...

Eloquent Relationships , request

I am trying to save personal info of user that is provided through form The relation i defined is public function JsPersonalInfo() { return $this...

socket.io

I am a big fan of Jaffery way and he is my teacher from tuts+ days. i learned most of my programming from him. Here on laracasts he discussed many topics and it has become...

Get Current User from a Restful API

Im having a bit of an issue modeling a restful api that i will consume with with angularjs. My problem is i want to be able to get the current user profile from my api, but...

Verify CSRF Token without middleware

I'm currently implementing a websocket server with laravel (using ratchet), and I want to verify the token of the user sending a request. The packet sent to the server incl...

Cant Redirect on Middleware

Hello all, im new on laravel. i just stuck with redirection on middleware, this middleware work if im login. but not work if not login, it must be redirect to home. here my...
Laravel
11
223

Hello Everybody

Hello everybody, first off I just want to say I'm new to Laravel and Frameworks. I have done some courses on basic PHP and am going to college for my degree in Web Media. I...
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