In this article, We’ll get the filname from the path provided. To get the filename from path, we’ll use php’s inbuilt basename function. basename() function in PHP is an inbuilt function which is used to return the base name of a file if the path of the file is provided as a parameter. That’s it!.Read more about How to get filename from path in php?[…]
In this article, We’ll see how to check the laravel version using CLI and file. Method 1: Check Laravel Version using CLI / Command Prompt Method 2: Check Laravel Version using file Open the below file in any editor. /vendor/laravel/framework/src/Illuminate/Foundation/Application.php In this file you will find the following That’s it!. Please share your thoughts orRead more about How to Check Laravel Version by CLI and File[…]
In this section, we’ll see how to sent email with attachments using email library. To send the email with attachments, first we need to load the email’s library. That’s it!. Please share your thoughts or suggestions in the comments below.
In this section, we’ll see how to send email using email library. To send the email, first we need to load the email’s service. That’s it!. Please share your thoughts or suggestions in the comments below.
To get the sql query, we can use enableQueryLog static method to print query. We can use: Or We can use toSql() to print the sql query. return select * from products That’s it!. Please share your thoughts or suggestions in the comments below.
Laravel 7 released on Tue, 3 Mar 2020 and it includes many new features including Laravel airlock, speed routing, better eloquent, blade component tags and many more. According to Release Notes, new packages, improvements and features in Laravel 7 are as follows: Laravel Airlock by Taylor Otwell Custom Eloquent Casts Blade Component Tags HTTP ClientRead more about Laravel7 Features[…]
In this article, We’ll see how to send push notification to android and ios both using fcm. Firebase Cloud Messaging (FCM) is a new cloud messaging services to send push notifications to Android, iOS and Web applications. It is the newer version of GCM (google cloud messaging) with more features. To send notifications, we basicallyRead more about Send Push Notification using FCM in PHP[…]
In this article, We’ll see about map, filter and reduce function and discuss them one by one and understand their use cases. map: applies a function to all the items in an input list. filter: creates a list of elements for which a function returns true. reduce: is a performing some computation on a listRead more about Map, Filter and Reduce[…]