Home » Tag Archives:phplaravel

Tag Archives: phplaravel

Laravel sql if statement

September 25, 2018 Php Leave a comment

Questions: I want to display all products on my page. Each product has x number of images. Some products have images which are set to be cover images. Now I need to get all products with the cover ima...

Get single value in laravel

September 25, 2018 Php Leave a comment

Questions: I have this code that returns me an array $t=TicketType::Select('id')->where('title', $request->get('type'))->first(); dd($t); this one TicketType {#452 ▼ +timestamps: false #casts...