Support the ongoing development of Laravel.io →

4,597 Threads

How to insert multiple rows with one query?

How would I implement this with laravel? INSERT INTO table (a,b) VALUES (1,2), (2,3), (3,4); thanks

0 Likes
1 Replies

How to save Data with same name Fields

Hello Guys, I just Worried for my Codes, And I dont know what to do. Cuz, iam new in Laravel, My Pro...

0 Likes
2 Replies
posted 10 years ago

DB::update() problem,it is not work!

i want to build a function call fixdelete to define a new softdelete. as you see: DB::update('update...

0 Likes
3 Replies

route doesnt work

why this route wont work ? its just refreshed the page. data wont fill in database routes.php <?p...

0 Likes
1 Replies

timeslot search using carbon

Hello, I am building a scheduler app that find candidates with free timeslots that fits into an empl...

0 Likes
1 Replies

Error in Passing a multidimensional array from controller to view

Route File:- Route::get('/',function(){ $menuitem = Menuitem::all(); return VIEW::make('index',$menu...

0 Likes
1 Replies

grouping of results

Hi, I'm looking for advise on how to group results from a query, the laravel way, I've tried looking...

0 Likes
2 Replies
Solved
posted 10 years ago

Fluent DB produces incorrect query if where is placed before join, order of statements matters

This Fluent statement: DB::table('plans') ->where('creator_id', '=', '0') ->leftJoin('...

0 Likes
0 Replies

Connect to a named pipe SQL Server with Laravel?

Is this even a possibility? Need it for a legacy project to transfer some data daily to my MySQL dat...

0 Likes
0 Replies
posted 10 years ago

datediff for mysql using query builder

I'm trying to use a mysql function in the column list. But i get an error column not found?... selec...

0 Likes
1 Replies
posted 10 years ago

Services and database foreign keys

Does anyone know if you need to still maintain foreign key constraints in services? Say I have a use...

0 Likes
0 Replies

seeding from a different database?

just need an example on how to seed records from a different database. do i need to add the connecti...

0 Likes
1 Replies
Solved
posted 10 years ago

schema builder: deferred constraint checking

i need to insert bulk data into tables and defer foreign key constraint checking until transaction c...

0 Likes
4 Replies

Searching database via URL params

I have a need to search the database of my site based on a URL. Since i am not near my local server...

0 Likes
3 Replies

Best way to work with mass update, insert and delete

I have form with hours (for every weekdays) and want: insert, update or delete row. Is there a bette...

0 Likes
1 Replies

Unable to call MySQL user defined function for laravel package bllim datatables

I have created a Mysql user defined function "calcVAT" to calculate some complex calculati...

0 Likes
0 Replies

Missing Class

I'm following the posts on the following thread: http://forumsarchive.laravel.io/viewtopic.php?id=15...

0 Likes
1 Replies

Eloquent - Advanced Wheres on Relations

Hey Guys, I'm trying to do grouped wheres ( like on SQL with the paranthesis) on Eloquent eager load...

0 Likes
1 Replies
Solved

run migrate Database using artisan (error)

Hello, I'm newbie in Laravel, when try to migrate Laravel 4 with table 'user' in database using arti...

0 Likes
0 Replies
posted 10 years ago

Group by multiple columns in Laravel

Hi all how to group by multiple column in Laravel? I tried this code $routes = DB::table('ro...

0 Likes
1 Replies

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.