Skip to content
Advertisement

Tag: laravel

changing sql statement to eloquent query

So I have an SQL statement as such; How do I change this to an eloquent query? Or is it better to just use a db:raw query? All inputs are very much appreciated. Cheers! Answer You can try this : Read more at whereBetween section in here

Laravel SQL Query. Help me

I have a table name “Offers” with 3 (public, request, private ) types of data. Now I want to show directly to the user end public and request offers. and private offers not be shown but when admin …

Math calculation laravel (netto-brutto)

I have code: But I have also another field Rechnung preis – Netto. What must be the code for calculate netto-brutto from bedrag_rechnung_brutto. It must be -19%. Netto = brutto /1,19. Answer What is your question over here? You already answered it yourself?

Advertisement