multiple where condition in laravel

Laravel Multiple Where Condition Example syntax ->where('COLUMN_NAME', 'OPERATOR', 'VALUE') ->where('COLUMN_NAME', 'OPERATOR', 'VALUE') ->where([ ['COLUMN_NAME', 'OPERATOR', 'VALUE'], ['COLUMN_NAME', 'OPERATOR', 'VALUE'] ]); SQL Query: SELECT * FROM `members` WHERE status = 1 AND app_flag = 0 Examople 1: public function index() { $members = Member::select('*') ->where('status', '=', 1) ->where('app_flag', '=', 0) ->get(); dd($members); } Example 2: public … Read more

Mail send with attachment in php demo

Today, We want to share with you mail send with attachment in php demo.In this post we will show you php send email smtp, hear for php code to send email from contact form we will give you demo and example for implement.In this post, we will learn about Send Simple Mail Function Using PHP … Read more

Export Data to Excel in Laravel Example

Today, We want to share with you laravel excel export example.In this post we will show you import csv or excel file and export csv or excel file using maatwebsite/excel version 3 composer package, hear for how to export import Excel spreadsheet or csv file to database in php laravel framework. we will give you … Read more

How to set limit and offset in Laravel Eloquent?

Today, We want to share with you limit in laravel.In this post we will show you Offset and Limit query in laravel application., hear for Order BY, Limit, Offset on Union in Laravel we will give you demo and example for implement.In this post, we will learn about Set(10,5 or n) String Length with an … Read more

How to get Main or Base URL in Laravel?

Today, We want to share with you base url in laravel.In this post we will show you laravel get current url, hear for app_url laravel we will give you demo and example for implement.In this post, we will learn about get current path in laravel with an example. 5 Ways To Get Base UR in … Read more

Get Current URL in a Blade View using Laravel

Today, We want to share with you laravel get current url.In this post we will show you get current url in laravel 6, laravel 7 and laravel 8 application., hear for Laravel – How to get current URL in controller or view? we will give you demo and example for implement.In this post, we will … Read more

how to delete data from database in php using button?

Today, We want to share with you how to delete data from database in php using button?.In this post we will show you how to edit data from database in php using button?, hear for how to delete a row in mysql using php we will give you demo and example for implement.In this post, … Read more

how to convert php page to pdf using php?

Today, We want to share with you how to convert php page to pdf using php.In this post we will show you how to create pdf file in php with example, hear for How to convert PHP file to PDF file or create pdf file from webpage Using mpdf we will give you demo and … Read more

CLOSEX