skip to Main Content

Laravel Sail – SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax;

Anyone knows why this query is returning error? I'm using Laravel Sail with Mysql version: 8.0.32, it should work: Property::select(DB::raw(" properties.id, properties.company_id, properties.title, properties.slug, properties.neighborhood, properties.city, properties.address, properties.number, properties.property_purpose, properties.property_type, properties.total_area, properties.usefull_area, properties.bedrooms, properties.bathrooms, properties.garage, properties.sell, properties.rent, properties.administration_fee, properties.yearly_tax, property_highliteds.hightlight,…

VIEW QUESTION

Laravel – Get path without arguments

In my api.php file, I might have a path that says Route::post('/this/thing/{variable}' In another part of my codebase, when a request is made to that route, I can get the actual requested route with $request->path();, but if I do that,…

VIEW QUESTION

Laravel – How to use button as Livewire toggler

Blade for livewire component: <div> <input type="checkbox" class="form-checkbox" wire:model="collapsed" wire:click="toggleCollapsed"> @if ($collapsed) show icon for collapsed state @else show icon for expanded state @endif </div> Works as expected - $collapsed changed because of checkbox, appropriate icon shown. But usage of…

VIEW QUESTION
Back To Top
Search