Support the ongoing development of Laravel.io →

4,599 Threads

syntax error, unexpected ':', expecting ';' or '{'

Good day all, Running into a little problem with my models and a package by spatie. Hopefully you ca...

0 Likes
2 Replies
Solved

Is it possible to get metadata describing the database schema of an Eloquent DB?

LateIy, I created a library that exploits the Doctrine Metadata to send a map of the database (field...

0 Likes
5 Replies

Iterating through the month field in the database and check with the current month

I have db table called "Payments". I am trying to find if any customer have missed any pay...

0 Likes
0 Replies

MD5 Encrypted Database Connection to PostgreSQL

Hi All, I have a postgresql database with md5 authentication enabled. I can login to my database fro...

0 Likes
1 Replies
posted 8 years ago

Accessing a part of queried table

How do I access this element? Here's my code + query on the database {{--*/$asgmt = \App\Submission:...

0 Likes
0 Replies

Advanced Eloquent query from morphToMany question

I have an Eloquent query question of approach. A Story hasMany Chapter. Story and Chapter are Taggab...

0 Likes
1 Replies
Solved

generating snippets

i have a routine which generates this code: <td style="text-align:left"> {{ Form::la...

0 Likes
2 Replies
posted 8 years ago

Is there a way to specify the length of an index ?

Basically what I would like to do is equivalent to this query: ALTER TABLE cleaners.categories ADD I...

0 Likes
2 Replies

Laravel randomly connects to different database

I have no idea how to google this since I mostly get tutorials about setting up multiple database co...

0 Likes
0 Replies

Fetching large numbers of rows

Hello guys, is there any way currently to fetch large datasets with Laravel? I know there's chunk()...

0 Likes
10 Replies
Solved

Importing excel file in Laravel 4

How to Import an excel file and update the data into database in Laravel 4

0 Likes
1 Replies

migrate:refresh can't find migration class file

Some migration files come up as missing: From term after php artisan migrate:refresh --seed [Symfony...

0 Likes
6 Replies
Solved

Subbmiting form with array of text fields.

So lets say you have a form with the following Item Qty Test 1 1 Test 2 2 Test 3 3...

0 Likes
17 Replies

Is there a way to check if a couple of inputs are unique in the same record?

Hello everybody! I'm new here, so I hope this is the right place.. What I have is a table with these...

0 Likes
1 Replies

[Symfony\Component\Debug\Exception\FatalErrorException] Class 'CreateTasksTable' not found

[Symfony\Component\Debug\Exception\FatalErrorException] Class 'CreateTasksTable' not found I have t...

0 Likes
1 Replies

where do I find all the parameters for the onDelete method?

I am struggling to find all the parameters possible for the method onDelete method, I am talking abo...

0 Likes
0 Replies

How do I model this Article/Category scenario?

I have a scenario with Articles and Categories where each article can have only one category through...

0 Likes
0 Replies

Best practise to hold code with query builders of dashboard?

Hi, I have a dashboard where are many statistics of my DB data. Query builders are from many models....

0 Likes
0 Replies

Optional polymorphic relation

Hi there, Unfortunately I stumbled upon a thing which I can't seem to fix. What I am trying to achie...

0 Likes
1 Replies

How do you deal with Nested Sets (ie. Categories)?

I found a nice concept of Nested Sets but haven't really seen it put to use. Is this a practical met...

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