Laravel Popular Post


How to check user login or not in Laravel 5?

If you are new and you trying to find how to detect user is login or not in your laravel application. So, it is very easy to check because laravel 5 provide to Auth facade for check user is login or not. Check bellow example: <strong>Example:</strong> <pre class="prettyprint lang-php"> @if (Auth::check()) {!! print_r("User is login.") !!} @else {!! print_r("User is not login.") !!} @endif </pre>

By Hardik Savani | April 28, 2016 | | 547 Viewer | Category : Laravel
READ MORE

How to set config file value in Laravel 5?

Whenever you need to get configuration files value then you can set using config helper in Laravel 5. In my previous post i added how to get config file value in laravel 5. If you are working on Laravel 4 then you should use Config facade for get and set value of config file. Maybe sometimes we require to set application url from app.php file or database name from database.php file so you can set this way: <strong>Example:</strong> <pre class="prettyprint lang-php"> config()->set('app.url','http://localhost:8000'); OR Config::set('app.url','http://localhost:8001'); </pre>

By Hardik Savani | May 30, 2016 | | 524 Viewer | Category : Laravel
READ MORE

How to send mail using zoho smtp server in PHP Laravel?

Laravel is a very popular and best framework in PHP. Laravel provide several mail drivers like smtp, mail, sendmail, mailgun, mandrill etc. We can also send mail using zoho smtp. I already post send mail using gmail, mailgun etc. Laravel gives us very simple configuration for mail send. So we can simply setup zoho server details. We have to just setup detail for host, post, driver and encryption. You have to follow this link for mail sending, You have to just change, .env file. First just follow this link. <a class="post-link" href="http://itsolutionstuff.com/post/how-to-send-mail-example-in.....

By Hardik Savani | December 22, 2016 | | 448 Viewer | Category : Laravel
READ MORE

How to install composer using command line in ubuntu ?

Composer through we can get packages from git and use it in our project. But you require to install composer in your system for getting packages. You can get packages for core PHP, Laravel, codeigniter etc. So, If you are working on ubuntu OS and you require to install composer then this post will help you quickly install composer using terminal command line in your ubuntu system. First Open your terminal and fire bellow three commands, i listed just three command to install composer, you have to just run one by one: <pre class="prettyprint lang-php"> curl -sS https://getcomposer.org/install.....

By Hardik Savani | November 18, 2016 | | 404 Viewer | Category : Laravel
READ MORE

How to add git add remote origin on bitbucket repository ?

when i was working on my laravel project with my friend. both are working on same project, when i changed on many files, he don't know and he changed name of repository on bitbucket and i couldn't push any thing, i told him. He know how can we resolve this issue so i remove my old remote and added new remote url on my existing repository. Finally, i solved my issue, if you also fetch issue like i had then you can just follow bellow command and solve. <strong>Terminal Command</strong> <pre class="prettyprint lang-php"> git remote -v git remote remove origin git remote add origin Bitbucket_Rep.....

By Hardik Savani | July 12, 2016 | | 384 Viewer | Category : Laravel
READ MORE

MySql comma separated column join in PHP Laravel 5

If we work in big application or project of Laravel Framework, sometimes we require to manage column value into comma separated because we can save memory of database. But if we store comma separated value in column with ids then it's difficult to inner join or left join and get records from another tables. However, SQL provide FIND_IN_SET() for checking value one by one, that way we can also search from comma separated value. FIND_IN_SET() will help to join with tables and we can simply get data. In this post, I will give you full example of how to get data from comma separated column table.....

By Hardik Savani | January 7, 2017 | | 361 Viewer | Category : Laravel
READ MORE

How to get location information from ip address in Laravel ?

Sometimes, we may require to get user information from ip address in Laravel 5 application at that time this article can help to get info from IP. We can get information from IP Address using "stevebauman/location" composer package for Laravel. "stevebauman/location" through we can get info like country Name, country Code, region Code, region Name, city Name, zip Code, iso Code, postal Code, latitude, longitude, metro Code, metro Code. They will provide bellow following details that they can get from IP. So first we require to install "stevebauman/location" composer package by using followin.....

By Hardik Savani | January 11, 2017 | | 351 Viewer | Category : Laravel
READ MORE

Laravel 5 amazon s3 file upload tutorial - Part 2

<br/> <br/> In this part we have last two step to create controller and make blade view file for file upload on amazon s3 server using Laravel 5 FileSystem. In this step, we will use "Storage" facade for upload file in amazon server and also get cdn url of uploaded files. So let's follow bellow two step for finish the full example of upload image in s3 server. <strong class="step">Step 5: Create Controller</strong> In this point, now we should create new controller as S3ImageController in this path <strong class="path">app/Http/Controllers/S3ImageController.php</strong>. this controller will.....

By Hardik Savani | January 4, 2017 | | 304 Viewer | Category : Laravel
READ MORE

Laravel 5 dynamic autocomplete search using select2 JS Ajax - Part 2

<br/> After complete 4 steps in our Part 1, we have to proceed next step from Part 2. In this part we write code for how to manage controller method and how to give response them. We also write code for view blade layout files. This part is hart of "Laravel 5 dynamic autocomplete search using select2 JS Ajax" article, In this part you will see the logic of database and blade template. So you have to follow this bellow remaining steps. <strong class="step">Step 5: Create Controller</strong> In this point, now we should create new controller as Select2AutocompleteController in this path <stron.....

By Hardik Savani | January 19, 2017 | | 234 Viewer | Category : Laravel
READ MORE


    Simple Example of Bootstrap Lightbox Plugin with demo

    Simple Example of Bootstrap Lightbox Plugin with demo

    Open Post

    Laravel 5 dynamic autocomplete search using select2 JS Ajax - Part 2

    Laravel 5 dynamic autocomplete search using select2 JS Ajax - Part 2

    Open Post

    Angularjs nl2br(textarea newline and linebreak conversion) example with demo

    Angularjs nl2br(textarea newline and linebreak conversion) example with demo

    Open Post

    Laravel 5 - Dynamic Dependant Select Box using JQuery Ajax Example - Part 2

    Laravel 5 - Dynamic Dependant Select Box using JQuery Ajax Example - Part 2

    Open Post

    How to use groupby having with DB::raw in Laravel Query Builder?

    How to use groupby having with DB::raw in Laravel Query Builder?

    Open Post

    Laravel 5 - Barcode generator example using milon/barcode package

    Laravel 5 - Barcode generator example using milon/barcode package

    Open Post