So i have User model and Articles model. When i return User::all()->toJson(); i get only user atr...
So, I got sick of reinventing multi tenancy over and over again. I got so sick of it in fact, that I...
Hi gues i am working on a login functionality that increments the "no of login times" tabl...
I am querying a table and I wonder why Laravel make a count(*) query before my query that spend addi...
jeanali liked this thread
Hi Guys, I'm recently decided to make a switch to start coding with Laravel. I will try to specify m...
Example in the docs: $user->roles()->attach([1 => ['attribute1' => 'value1'], 2, 3]); So...
Hello, I need convert query from mysql to eloquent mysql Query SELECT count('id_sale') FROM sales J...
I'm trying to write this first piece of line in Laravel. I thought I got it right, but not. I hope t...
I'm trying to see if the form has been posted but this method does not seem to work if(Request::is_g...
There is one problem which I can't solve. I need to show a response only for users whose user_id was...
I'm using CURL to process data that is sent to an API cross site. When I get the data back to displa...
I am using the expedia API and I can send request using CURL. Using Laravel 5, am I better to stick...
I have in my model several tables where the primary key it's not autoincremental, but it's a varchar...
#Background My Controller is loading several items (from an Eloquent Model) and passing them into th...
I have a web page that lists events, it is split into 2 categories: This week (today is FRIDAY so t...
I have a model with a belongsToMany relationship with an additional pivot column. public functio...
Route::resource('profile', 'ProfileController');//-> $router->bind('profile}', function ($use...
I have a search destination, arrival and departure data form that I have on every page in my templat...
I'm sure there's a good solution to this, but I've been staring at it all day and my brain is fried....
Do i? Lets say that my db is going to be well maintained by one person (me) and that no other applic...
Solutions given in the past year. Excluding solutions from thread authors.
Select a tag below to filter the results
The Laravel portal for problem solving, knowledge sharing and community building.
The community