Support the ongoing development of Laravel.io →
Xtreem Developer

Xtreem Developer

Joined 20 Dec 2017

Statistics

Threads 1
Replies 30
Solutions 0
Articles 0

Define model based on role

How to define model based on role I have a table where I save users. Users can either be a student,...

0 Likes
1 Replies
replied 8 years ago

Upgraded from Laravel 5.4 to Laravel 5.5 getting error.

Laravel 5.5 requires PHP 7.0.0 or higher. So fistly update PHP version after that you can update Lar...

0 Likes
replied 8 years ago

Laravel Accessor ORM

To define an accessor, create a getFooAttribute method on your model where Foo is the "studly&q...

0 Likes
replied 8 years ago

How to merge a row dynamically for the same record in view ?

You this sql query. SELECT Id = 1, MarkId = 1, Mark = 15 INTO #Temp UNION SELECT Id = 1, MarkId = 2,...

0 Likes
replied 8 years ago

[5.4] How to prevent the csrf_token expiration and caffeine.

You can send CSRF token in form. <input type="hidden" name="_token" value="{{ csrf_token() }}">...

0 Likes
replied 8 years ago

updateOrCreate large number of records

You can try this code: public function updateOrCreate(array $attributes, array $values = []) { retur...

0 Likes

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.

© 2026 Laravel.io - All rights reserved.