In Nowdays, Social authentication is important to implement in website because nowdays most of the users or developer etc will connected with Social network like facebook, twitter, google+, gitbub etc. So, In this post i want to share with you how to do sign in with facebook and how to do sign up with facebook. Laravel 5 provide very easy way to implement login with your facebook account and register with your fb id. Laravel 5 provide us Socialite package that is help to social authentication. In this post we will make example same as like bellow preview and you can do that easily by using few.....
In Todays, Social network is very wide and lots of people are connected with them. So, Social authentication is important to implement in website because nowdays most of the users or developer etc will connected with Social network like google,facebook, twitter, gitbub etc. So, In this post i want to share with you how to do sign in with google and how to do sign up with google. Laravel 5 provide very easy way to implement login with your google account and register with your google id. Laravel 5 provide us Socialite package that is help to social authentication. In this post we will make exam.....
If you want to use Form or Html class and when you will see error like ‘HTML’ class not found OR ‘Form’ class not found. don’t worry about that because Laravel 5 change the package. you should download the HTML and FORM class helper from given instruction above.
Add given bellow text to your composer.json file.
<pre>composer require laravelcollective/html</pre>
after fire composer update command After Update composer, open config/app.php and add this line to the ‘providers.....
We always need to use notification in our project, because for example if user add new record and we need to display notification with success alert, when comes error then display error notication. So if you use jquery notification popup then it's better that way it's layout looks like good.
In this example i use toastr.js plugin that provide several notification type like warning, success, info, error etc and several function. toastr Jquery plugin you can use easily with bootstrap and very customize. You can run bellow example and you can see how it works and pretty good.
Laravel 5.3 released few days ago, that update several part from laravel 5.2, Laravel 5.3 also change mail sending function. Laravel 5.3 introduce mailable class for mail sending like Laravel 5.3 event and mailable class provide several method like view(), from(), text() etc. Mail send example is pretty interesting then laravel other version and also very simple with fully customize.
Today, i am going to tell you how to send simple email with gmail smtp configuration using laravel 5.3 mailable class. It is very simple and best way. you have to just follow few step and you will get simple mail.....
In this post i am going to give you example of how to integrate payment Paypal gateway in php with demo. It is very simple to use paypal payment method in your native php website because you don't need to use any api for paypal payment gateway integration. Paypal provide very simple way to do this and paypal also provide developer console i mean Sandbox account that way you can check it better. In this example i give you step by step payment integration of paypal.
<img src="/upload/PHP-Paypal.png" width="100%" style="border:1px solid red">
<strong>Step 1: Create Sen.....
Whenever you want to define your scheduler task, and if you are working on laravel framework then you can do it easy way and very secure. Laravel provide <strong>Scheduling</strong> and Scheduling through you can manage your cron, if you need to run every day, every minute, every hourly, weekly, on specified days.So, basically i going to give example how to create cronjobs in laravel.
First you have to create one command that way you can create proper programming and good way, but you can also do without create command, It is good if you create your own command and with good code. So, open yo.....
We always require to make multiple file or image uploading function in our common website or project. We use input with multiple with image upload but it's not looks great and user does not like pretty much, so you should make it better. Image uploads is very common for all website, But if you are working on PHP or any PHP framework like laravel, codeigniter, yii etc then you can simply use dropzoneJS library.
Its very common need to get last insert id in programming field, if you are working on laravel framework and you want to fetch last created id, i mean max id, then you do easily.laravel provide method to get last inserted id.
If you are working with DB::table() then you have to use insertGetId() for insert data into database. this function always return inserted record id(primary key).it is very simple way to get id, in following example you can see and undestand more:
public function getLastInsertedIdDB()
$id = DB::table('items')->inser.....
If you want to sort multiple columns in Laravel by using orderBy(). Whenever you need to give multiple column in your query then you can use twice time orderBy() and give them. you can give multiple columns in laravel by following example :
<strong>Users Table :</strong>
<table class="table table-bordered pagin-table"><tbody><tr><th>id</th><th>site_id</th><th>sub_site_id</th><th>name</th><th>email</th></tr><tr><td>1</td><td>4</td><td>7</td><td>john</td><td>email@example.com</td></tr><tr><td>2</td><td>3</td><td>4</td><td>ram</td><td>firstname.lastname@example.org</td></tr><tr><td>3</td><td>4</td><td>2</td><td>ade.....