Support the ongoing development of Laravel.io →

256 Threads

posted 9 years ago

kind of 'global function' possible in controller ?

Hello. I have a controller for 'users' and some segments under it like user/photos user/comments for...

0 Likes
2 Replies
Solved

How can I do this SQL query whit Eloquent?

Hello, Im new whit laravel, and I would to like do this query, in SQL it would be something like thi...

0 Likes
3 Replies
Solved

Using $this when not in object context | Repository & Command Bus

I am using Laravel Commander to use the command bus to handle everything in an app I am building. I...

0 Likes
1 Replies
Solved
posted 9 years ago

I have a problem about "Call to a member function createData() on a non-object"

This is my all code I don't know why my Controller didn't know the constructor http://help.laravel.i...

0 Likes
5 Replies
Solved

Ajax post controller redirection problem

I post from ajax to a Controller and I do some authentication there. If the authentication fails I s...

0 Likes
2 Replies
Solved

PSR-4 Autoloading and Views

Hey there, If I have used psr-4 autoloading e.g. "psr-4": { "Admin\": "app/...

0 Likes
2 Replies
Solved

Multiple tables over multiple databases in a single Model

I am in the planning stage of undertaking a database migration where the two databases (one MySQL, o...

0 Likes
4 Replies
Solved

Deploying on shared hosting

Hello, is there a possibility to deploy Laravel app to shared hosting without any custom steps, like...

0 Likes
1 Replies
Solved

Multiple relationships to the same table

I am experimenting with using Laravel for a new project and got stuck at the model definition stage....

0 Likes
1 Replies
Solved

In-query check or code check

Hey, Quick question here! I don't really know what are the best practices on that subject, so I'll l...

0 Likes
4 Replies
Solved

one to one relationship example

suppose i have two tables abc and def. i make two models Abc and Def. in Abc table i declare public...

0 Likes
5 Replies
Solved

MVC architecture

Hello, I am creating a large internal portal for a company with many features. When creating a large...

0 Likes
8 Replies
Solved

Best way to create route and resource controller

Hi all! Sorry for my bad english. I want to create this route: /{slug} GET - site.show And oth...

0 Likes
2 Replies
Solved
posted 9 years ago

How scalable is Laravel

I am building a simple social application in Laravel that will be RWD for mobile devices and later w...

0 Likes
1 Replies
Solved

Autoload view with psr-o

Good night ! Following the instructions from that link: https://github.com/daylerees/autoload-demo B...

0 Likes
2 Replies
Solved

Type hinting parent::__construct() arguments in controllers

Greetings, I've got a BaseController with the following code: class BaseController extends Contr...

0 Likes
2 Replies
Solved

Is it valid to use filter to pass variables to layout?

Hi, I have a layout which requires a few variables and several controllers that use this layout. The...

0 Likes
1 Replies
Solved

How can I pass posted data from a sevice to a controller?

Hi, I have made a service for validation but I am not sure how to pass the posted data back to the c...

0 Likes
1 Replies
Solved

Laravel belongsTo not working

I have 2 models in my app, 'User' & 'MedicineType' (each User belongs to one MedicineType). I ma...

0 Likes
2 Replies
Solved

Best practice - place large queries in model or controller?

Hi, I'm quite new to laravel, so trying to get the hang of the best practices at the moment. Today I...

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