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

How to add user id as a default value when inserting new records

I am building app for enterprise their are three tables: users table (belong to company) companies...

0 Likes
5 Replies

Store upload files into app folder

Hello. I'm building a big storage app for some official documents witch are also digitaly signed. I...

0 Likes
1 Replies
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
posted 10 years ago

Seeder just insert one record instead of two

Hi, I'm new in Laravel. I learn Laravel from "Learning Laravel 4 Application Development"....

0 Likes
2 Replies

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

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

0 Likes
6 Replies
Solved
posted 10 years ago

Validation - Always showing The password field is required. Only

public function postSignup() { $validator = Validator::make( array('email' => 'required'|'unique:...

0 Likes
2 Replies

Querying a Many-to-Many Relationship

I might be overlooking this in the docs (Laravel 4.0) but I need to know how to query a many-to-many...

0 Likes
3 Replies

Laravel using wrong table name?

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

0 Likes
4 Replies
Solved

detect if the uploaded file is an image

any idea on simple function to know if the file uploaded is an image? I know you can do geMimeType b...

0 Likes
4 Replies

Trigger 500 error from the start.php file

In the ./application/start.php file, is there a way to respond with the 500 error page here, before...

0 Likes
2 Replies

website stoped after upload picture with more than 5000 pixles

How can i set maximum width for original images in the uploader? because picutre with more than 5000...

0 Likes
5 Replies

Laravel environments

Hey, I'm working on an app made on Laravel where i have to host multiple domains. It's an Project Ma...

0 Likes
4 Replies
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

Access the model in custom validators

Is there a way to access the model itself in the custom validators? I've tried passing the id in as...

0 Likes
0 Replies
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

Redirect is no return

Hey guys, i have create a lib class for my ACL. But after call a return Redirect::route(.....) nothi...

0 Likes
4 Replies

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

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.