Web Prepration

Web Concept Tutorials

Laravel

Here you can study most popular and useful tutorials of Laravel, we have lists of tutorials, Interview Questions and answers of  Laravel.

Laravel, PHP
Laravel Curd

In this post, I am going to explain how to create CURD (Create,Update,Read and Delete) operation with image in laravel 5+ from scratch. This post is very helpful for laravel beginners. In this CRUD application just need to follow all steps. I used resource route, validation, listing etc in this crud application example. After finish all step successfully, you will find output like as bellow image output. Step 1: Laravel Installation If you haven’t installed laravel in your system and want to fresh project then just run bellow command and get new Laravel project.

After clone laravel application, we also require to install laravelcollective/html for Form class,you can install laravelcollective/html class using composer just need to update composer.json file and add “laravelcollective/html”: “~5.0” in require section. after that changes run below command.

Step 2: Create items table and model In this step we have to create migration for items table

read more >>
CodeIgnitor, Laravel, PHP
webprepration-email

In this post, I am going to explain “How to Send Mail with Attachment in PHP”.  In web application generally implement email send functionality such as user email verification with terms and condition files, orders details, order invoice mail etc. So in this post we have explained how send email with attachment in PHP easily using PHPMailer.  PHPMailer is the best way to send mail with attachment or html mail for that you need to download php mailer library. PHPMailer library handle any type of files in mail and you can send any type of mail using phpmailer library in php.  

read more >>
Laravel
Pagination

If you are laravel beginners then this post  can help you that how to add pagination easily  in your blade template. There is no need to implement pagination logic’s and long code write for pagination in laravel because laravel provides own function which generate pagination very simple so let’s select data following way in Controller. Controller File:

In above example you can see now it will return pagination with 15 records if you want to 5 or 25 etc then you can change argument. Now we have to render pagination view so, let’s see view/blade file. Blade File:

 

read more >>
Laravel

If  do you want to get logged in user information in laravel, Laravel auth function provide login user information you need to call Auth::User() function which returns all the details of users and also want to check user login or not then use laravel Auth::check function which return true or false.

 How to create a record in Laravel using eloquent ? To create a new record in the database using Laravel Eloquent, simply create a new model instance, set attributes on the model, then call the save method:  example code give below.

Using save function you can simple insert data in database with all details which passed in request parameters.

read more >>
Laravel

In this post, I want to explain how to create multi auth laravel. In laravel auth functionality creation is very easy using artisan command. But there are an confusion that how to create multi auth in laravel using artisan command. Laravel is a very powerful MVC Framework which is works with php artisan command, In laravel we can create fully command based application. Let’s Get Started To begin the process of setting up Multi-Authentication in Laravel, we will run the default authentication script. Hopefully you are already familiar with this and what it does. The reason we start from this is that it will give us the baseline to work with. It will set up on of our users right out of the box, and then we will use what it generates to work on our second user type.

Now we have a lot of new files generated in

read more >>
Laravel

Laravel is a most powerful framework of PHP which is a purely depends on PHP artisan command. In this post I want to explain how to install and setup laravel on localhost environment. Laravel is created by Taylor Otwell and first beta version released in 2011, It is a fully followed the MVC structured and artisan command laravel is the best php framework comparison to CodeIgnitor,Yii2 etc. Laravel framework Features Bundles provide a modular with bundled features already available for easy addition to applications. Laravel use Composer as a dependency manager to add framework. Object relation mapping is an advanced PHP implementation of the active record pattern, providing at the same time internal methods for enforcing constraints on the relationships between database objects. Laravel provide Query builder more direct database access alternative to the Eloquent Object Relational Mapping. Instead of requiring SQL queries to be written directly, Laravel’s query builder provides a set of classes and methods capable of building queries

read more >>