Support the ongoing development of Laravel.io →

4,311 Threads

Using model to check if the database contains values

I am using my model to query the database and then check if there are values in my DB and if the rec...

0 Likes
0 Replies
posted 9 years ago

Get plain Eloquent QueryBuilder

Hi, I need to get a query builder for an Eloquent model, one like returned by Model::where(...), but...

0 Likes
0 Replies

Eager loading duplication

I'm trying to set up eager loading to prevent N+1 queries, but I'm finding that I have to duplicate...

0 Likes
0 Replies

watson/validating is not validating

Hello. There's my controller code: $site = new Site; $site->fill(Input::only('name', 'slug', 'con...

0 Likes
1 Replies

variables undefined

I have script: $("#consigneeBtn").on('click', function() { var id = document.getElementByI...

0 Likes
0 Replies

Trying to get property of non-object

I am extremely confused why I am getting this error: ErrorException (E_UNKNOWN) - Trying to get prop...

0 Likes
0 Replies

Does not work authorization

Hi, coders! Authorization does not work, bring the class code: function postEnter( ) { $login = In...

0 Likes
0 Replies

if statment in query

Hello, I have two tables in db mt4_users and mt4_trades the realtion btween two tables is login_name...

0 Likes
8 Replies

Improve for my sortable table approach

Hello everybody I had to create a sortable table. I've described my solution here: https://janikvonr...

0 Likes
0 Replies

Use Kohana user table in Laravel app

I have the following situation: Huge application, running with Kohana on a mysql database. Admin pan...

0 Likes
0 Replies

Schema builder and MySQL "SET" column type

Hi, I need to create a "SET" type column in a table and just found out that schema builder...

0 Likes
2 Replies
Solved

AutoHydrate Ardent Model, but sometimes manually assign?

So I have my Model setup like this: [code]protected $fillable = array('dragon_id', 'name', 'gender')...

0 Likes
3 Replies

Artisan runs from CLI but Artisan::call doesn't?

Hi, I'm having a weird error. The following one runs fine on CLI: php artisan migrate --path=workben...

0 Likes
2 Replies

how to convert after upload image to base 64 in laravel to save in db?

Hello, how to convert after upload image to base 64 in laravel to save in db? upload code here $file...

0 Likes
4 Replies
Solved

Keeping code tidy

What is the best way of keeping code tidy. Is there any blogs on this subject? I have read the Larav...

0 Likes
0 Replies

Using radio Buttons

I need to send more values through a radio button however I cannot seem to get those values back on...

0 Likes
4 Replies
Solved

model binding with an Input array

Sorry if this is a beginners question. I am using Laravel 5 and trying to make an application that...

0 Likes
0 Replies

Help me convert raw SQL to eloquent

Hi, as the title says I'm looking to move a raw SQL query to eloquent. My models and relationships a...

0 Likes
2 Replies

DB Grouping on condition

I am working on a news feed and have been trying to figure out this query but am a bit stuck. In a s...

0 Likes
0 Replies

Save button with Javascript, saves record only with alert!

I have a button in Laravel which on it's click event calls a javascript function ( onclick=SaveCateg...

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.