hi, i would like to make an empty relation, is that possible? tried class Testmodel extends Model {...
I need to set dynamically the table name (extract from other database) and get the last record. This...
i face a problem when i register a user through web service API project, and it was working but sudd...
Windows 10, OpenServer, Laravel 4.2, Elasticsearch 1.0 Controller: public function searchUser()...
Wrapper namespace App\Services; use Elasticsearch\Client; class Elastic { protected $client;...
table struct is apply_forms id form_number name apply_form_devices id apply_for...
I have, $a = App\SomeModel::where('id', 1)->get()->last(); My model's table has 72 entries. $a...
Hi. I already done making this url but I want to know what is the best practice to handle multi leve...
Hi, outputing data from created_at field lavarel 5.4/postgresql 9.4 I got error: InvalidArgumentExce...
First of all, sorry for my bad english, I will try my best to explain it. I'm using Laravel 5.4 and...
I have a platform where I have Users that are a Shop, they can place Orders, and I have Users that a...
I am using laravel-5.4 table: | item_id | option_id | value | |---------|-----------|-------| | 1...
Here are my migrations: photoset_categories class CreatePhotosetCategoriesTable extends Migration {...
how to add timetamps with default value on multiple tables using migrate
Hi there! I have a bunch of accessor and I want to receive suggestions on how to improve it. public...
I have a pivot table "show_user" with columns show_id, user_id in my App\User.php i have p...
Hello, in laravel 5.4 setting rule for unique name like $rules = array( 'name' => 'r...
If I do this, I would be able to retrieve the images() for the item $items = Item::all(); foreach($i...
I was working with dropdowns and was thinking if it is possible to use lists() method to get two col...
i'm trying to save a new tvshow and it's episodes into the database with the following code but in t...
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