Support the ongoing development of Laravel.io →

Relationships (One-to-One)

I'm new to Laravel put like what I see so far. Here's my issue. In my example app I have 2 models...

0 Likes
10 Replies
Solved
posted 10 years ago

Trying to get property of non-object

If i'm copy the url of the home page and paste it into another browser it should go to the login pag...

0 Likes
3 Replies
Solved

Throw new NotFoundHttpException("Controller method not found.");

I have: class ProfilesController extends BaseController { public function getTest() { return Vie...

0 Likes
6 Replies
Solved

Laravel using wrong table name?

Here's my Level model: class Level extends Eloquent { protected $table = "levels"; }...

0 Likes
4 Replies
Solved
posted 10 years ago

Help with relation query

Hello, My query is returning the wrong product. My Order.php has a relation of public function items...

0 Likes
2 Replies
Solved
posted 10 years ago

Unhash password and API grasping problems?

How do i unhash a password I want to display the password in a textfield inside my app? I uses Hash:...

0 Likes
2 Replies
Solved

Non-static method Confirm::posts() should not be called statically, assuming $this from incompatible context

These are my models User public function posts() { return $this->hasMany('Post'); } P...

0 Likes
5 Replies
Solved

Is there a reason for using URL Helpers?

Lets start with three examples: <link rel="stylesheet" href="assets/css/app.css&qu...

0 Likes
3 Replies
Solved
posted 10 years ago

Cant see why my class wont work: Error: Class 'Acme\Something\Awesome' not found

Pastbin is always easier, see http://laravel.io/bin/dm73 For some reason it doesnt find the class, i...

0 Likes
4 Replies
Solved

Combining two query (WhereIn with Where) x 2

$userCollection = DB::table('collections') ->whereIn('user_id', array())...

0 Likes
3 Replies
Solved
posted 10 years ago

Modify files from php

Is there any fast method to change values into files like language files (php) or json files?

0 Likes
2 Replies
Solved

Cannot find records using ->where() and booleans

Hi, I'm having a problem. Using migrations I create the following field: $table->boolean('is_clos...

0 Likes
1 Replies
Solved

Show only 'courses' that 'user' has created

Hey, I'm trying to build a query where I want only courses that belong to a user_id are displayed. H...

0 Likes
4 Replies
Solved

Issues with Eager Load With Limit & Variable

The following would give me collection without Items. $collectionList = Collection::where('user_id',...

0 Likes
7 Replies
Solved

Visible, Hidden, Fillable & Guarded with Foreign Keys

Hi, First question: What options should foreign keys use? Guarded? I have an Article object that has...

0 Likes
3 Replies
Solved

Migrations from 3rd party packages

Hi, What would be the best method to set up a script/command to run through general migrations as we...

0 Likes
2 Replies
Solved

Store data in memcached

Hi, Q1, Is there anyway i can see how Memcache works? with laravel? What does Laravel set in the Key...

0 Likes
3 Replies
Solved

jquery mobile simple form route does not work

I have this view code (hello.php) <!DOCTYPE html> <html> <head> <meta name=&quo...

0 Likes
3 Replies
Solved

SQLSTATE[HY000] [2002] Connection refused

i have moved my website from hosting to server .. i modified the database.php with the new infos .....

0 Likes
4 Replies
Solved

Limit Relationships in Eloquent

Hello All, I have a self project. I am trying to create an application that can track my financial s...

0 Likes
1 Replies
Solved

Thanks to our community

Solutions given in the past year. Excluding solutions from thread authors.

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.