Author: Justin

In this post, I will give you an example for Image crop and upload to AWS. Here i will use cropper js. We will Upload image on Locally also. Now let’s start step wise. Step 1. Install Laravel. Step 2. Create Controller by Artisan command. Step 3. Create View File. Step 4. Setup AWS S3 in .env Step 5. Create Route. Step 6. Run and Test. Step 1. Install Laravel. composer create-project –prefer-dist laravel/laravel ImageCroper Step 2. Create Controller  I will use artisan command for Creating a controller. If you also create directly by creating a new file.…

Read More

Hello , Today i will show you how we will use a WYSIWYG Text Editor. In this post i will use Summernote editor, With installation and Image Upload. I hope if you are searching for WYSIWYG Text Editor, then you all know Laravel installation and a basic of laravel. I will create a form , That form save data to database and at last i will show you data on HTML. Step 1. Create a blade file for Form. <html lang=”{{ str_replace(‘_’, ‘-‘, app()->getLocale()) }}”> <head> <meta charset=”utf-8″> <meta name=”viewport” content=”width=device-width, initial-scale=1″> <title>Laravel Summernote Editor Example</title> <!– include libraries(jQuery, bootstrap) –>…

Read More

Hello , in this post i will show you how we can send email using SMTP, here i will use gmail SMTP and show you, also i will use a beautiful email templates that is created with HTML. Let Start: Step 1. Install Laravel I hope you already aware with Laravel and its installations, If not please use this link. Step 2. Changes in .env file put the below code and change with your email and password. MAIL_MAILER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=465 [email protected] MAIL_PASSWORD=gmailpassword MAIL_ENCRYPTION=ssl [email protected] MAIL_FROM_NAME=”${APP_NAME}” Step 3. Create Mailable Class Now in this step we will create mailable class…

Read More

Hi all, In this post, i will show you how we can download data in excel/CSV. Here I will use a package, which will do the job easily. Before i am going to deep, i expect you have knowledge of Laravel 9 installations, already have database and a project. Follow the below steps. Step 1. Package installation $ composer require maatwebsite/excel Step 2. Create Controller and Route Create a controller using below command , If you already have controller then no need. $ php artisan make:controller YOUR_CONTROLLER_NAME Create a function for export inside your controller public function export_country(Request $req){…

Read More
Git

Here you learn about the difference between Git and GitHub. A novice, might assume that Git and GitHub are the same, and serve the same purpose, but this is not the case. Git is a version control system that is used to manage different versions of our project whereas GitHub is a Git repository hosting service. Git- Git is a very popular version control system that is used to manage projects. However, a version control system is a software that is used to track changes made to projects, and it stores these modifications as different versions of a project. It…

Read More
Git

Linux is a popular and as well as widely used operating system. The installation of Git on Linux is quite simpler when compared to other platforms. However, one has to use the right package manager for the Linux distribution. We will proceed with this tutorial to see how to install and set up Git on various distributions of the Linux operation systems. For Debian/Ubuntu You will run the following command on the shell/terminal to install Git in Linux. sudo apt-get install git Now, confirm whether Git was successfully installed, use the to — version command: git –version For Fedora, CentOS…

Read More
Git

Welcome to tutorial on Git. Here you will learn how to Create a Repository, and how to clone or copy other repositories. A Repository is a project that is tracked and managed by Git. Thus, Git tracks changes by storing snapshots of project versions in a .git file. Git Config There is a need to configure our name and email address before creating our first repository. This assists Git to keep track of which users made commits to a certain project, in the case where multiple developers are working on the same project. Check out the example below, as we…

Read More

This problem come usually , Then at short how we can solve, directly i will give you solution. In Ubuntu I did not found httpd.conf, It may not exit longer now. Edit in apache2.conf file  cd /etc/apache2 sudo vi apache2.conf Change the below line <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory> AllowOverride All <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> Now restart apache2 with below command sudo systemctl restart apache2 Now its done, Hope this will help you.

Read More

In this post, I will show you how we can upload a zip file on server and extract. Follow the steps below, I hope you all already install Laravel , if not then use this link. Step 1. Create a controller using artisan command. php artisan make:controller ZipController Step 2. Make route for View and Upload Route::get(“/adv-view-creative/{id}”,[ZipController::class,”view_creative”]); Route::post(“/adv-save-new-creative”,[ZipController::class,”save_creative”]); Step 3. Create View file <div class=”modal model-lg fade” id=”myModal” role=”dialog”> <div class=”modal-dialog” style=”max-width:800px !important;”> <!– Modal content–> <div class=”modal-content”> <div class=”modal-header”> <h4 class=”modal-title”>New Creative</h4> <button type=”button” class=”close” onclick=”hideModel();” data-dismiss=”modal”>&times;</button> </div> <form action=”/adv-save-new-creative” method=”post” enctype=”multipart/form-data” style=”background-color: white;”> <div class=”modal-body”> <div…

Read More

It’s important to know how to redirect http to Https, You did this by using htaccess, but you will see something like below image. It’s very simple to get out from this errors. Follow the below steps. Open YOUR_PROJECT/Providers/AppServiceProvider.php Add the below line inside boot function/method. Like below code public function boot() { URL::forceScheme(‘https’); } Make sure to import at top “use Illuminate\Support\Facades\URL;” Now your AppServiceProvider.php will looks like below code. <?php namespace App\Providers; use Illuminate\Support\ServiceProvider; use Illuminate\Support\Facades\URL; class AppServiceProvider extends ServiceProvider { public function register() { // } public function boot() { URL::forceScheme(‘https’); } } Now it’s…

Read More