Laravel Popular Post


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

Today, I am going to share with you how to make dynamic autocomplete select dropdown from database using select2.js plugin in our Laravel 5 application. Why we have to use autocomplete for our project ?, Sometimes we have more or thousands of records on our tables like users, products, tags etc, so that can not possible to handle in manage from select box. But you must require to make select dropdown for your products tables then you can do it using select2.js plugin. I already post autocomplete with Bootstrap Typeahead Plugin(<a href="http://itsolutionstuff.com/post/laravel-5-autocomplete-us.....

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

How to check if View Exists or not in Laravel 5?

In some situations, we require to check if view exists then render view otherwise display something else. But you can perform this task using "exists" function of view helper. It will return true or false. So you can use bellow example. <strong class="example">Example:</strong> <pre class="prettyprint lang-php"> if (view()->exists('users.index')) { .... } </pre>

By Hardik Savani | April 12, 2016 | | 669 Viewer | Category : Laravel
READ MORE

How to execute mysql query in laravel?

Sometimes, we require to run directly mysql query on Laravel for example if you need to copy one table to other table using mysql query. I also need in one project and that's why i am fetching problem. But you can use sql query on laravel using db statement in bellow example you can learn how to run. <strong>Example:</strong> <pre class="prettyprint lang-php"> DB::statement(" INSERT INTO `posts` (repost_of_id,token_id,post_details,user) SELECT id,token_id,post_details,".$loginUserId." FROM `posts` where id = ".$postId." "); </pre>

By Hardik Savani | May 2, 2016 | | 662 Viewer | Category : Laravel
READ MORE

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

<br/> After complete our fist part of Laravel 5 - Dynamic Dependant Select Box using JQuery Ajax Example, Now we have to do main task for Dynamic select box value. In this part we follow two step for create Controller File and Laravel Blade File. In this part we write code for how to manage controller method and how to give response them. So let's follow this bellow remaining two step of change drop down options on change of parent dropdown. So let's follow: <strong class="step">Step 5: Create Controller</strong> In this point, now we should create new controller as AjaxDemoController in th.....

By Hardik Savani | January 8, 2017 | | 647 Viewer | Category : Laravel
READ MORE

How to quick run laravel project?

If you want to run laravel project without virtual host then you can run quickly using laravel artisan command. if you are beginner and you are confuse how to run laravel application then it is very simple to run so just run bellow command in your terminal: <strong>Run Project</strong> <pre>php artisan serve</pre> After this command you can copy this link and check on your browser: <pre>http://localhost:8000/</pre>

By Hardik Savani | April 24, 2016 | | 642 Viewer | Category : Laravel
READ MORE

Solve - no connection could be made target machine actively refused it laravel

I fetched this issue when i was new in laravel and i clone project on my bitbucket. I was tring to run my project, but when i composer update at last i had found this error : no connection could be made because the target machine actively refused it laravel. If you also found this error then <strong class="path">Check your Database Configration (database.php)</strong>. maybe you haven't setting of your database configration details. After this it will run try this, it was worked for me....

By Hardik Savani | June 22, 2016 | | 594 Viewer | Category : Laravel
READ MORE

Laravel 5 - How to get difference of time in minutes?

Sometimes we require to calculate minutes difference between two dates in Laravel Application. But Laravel provide Carbon class. Help of Carbon class we can simply calculate minutes difference between two dates. you can simply customize code also. In Following example you can see, we have a two dates, first $to variable and second one $from variable. Carbon class diffInDays function using you can get difference between two dates. So, let's see bellow example, it is pretty simple: <strong>Example:</strong> <pre class="prettyprint lang-php"> $to = \Carbon\Carbon::createFromFormat('Y-m-d H:s:i.....

By Hardik Savani | September 14, 2016 | | 589 Viewer | Category : Laravel
READ MORE

How to set URL without http of Other site in Laravel?

you are working on laravel php framework and you want to give any other site URL. we can easily give url using a tag like href="https://www.facebook.com" but if you are work on laravel then it can't redirect on given URL because laravel always redirect on current site, but we have solution of this problem. How to set URL without http or https of Other site in Laravel Website?, i describe as under. For example if you want to give facebook url then you can give this way : <pre class="code language-html"> <a href="//facebook.com" target="_blank">FB</a> </pre> Try this.....

By Hardik Savani | January 10, 2016 | | 561 Viewer | Category : Laravel
READ MORE

PHP Laravel – How to solve “You need to specify a file path to store the seed laravel ” ?

when you install laravel and get the records from database then occur “You need to specify a file path to store the seed laravel” error. that error happened because your php can not loading openssl extension. so, If you are using windows then you should enable openssl extension in following path : <pre> Path : C:\wamp\bin\apache\Apache2.4.4\bin </pre> Find: <pre> ;extension=php_openssl.dll INTO extension=php_openssl.dll </pre> Try this..........

By Hardik Savani | January 25, 2016 | | 559 Viewer | Category : Laravel
READ MORE

How to convert one time zone to anothor time zone

Some application required one time zone to convert another time zone. PHP provide some readymade timezone conversion classes but it a very complecated. so we have try to define this function simple way. You can createe a simple class and write one function into the class. then you able to use this function everywere. <pre class="language-php"> class convertTimezone { function convert_timezone() // Constructor of the class { } function converToTime($conv_fr_zon=0,$conv_fr_time="",$conv_to_zon=0) { //echo $conv_fr_zon; $cd = strtotime($conv_fr_t.....

By Hardik Savani | February 17, 2016 | | 554 Viewer | Category : Laravel
READ MORE


    How to send mail using mailable in laravel 5.3?

    How to send mail using mailable in laravel 5.3?

    Open Post

    Jquery - input tags plugin example using jquery.tagsinput.js plugin

    Jquery - input tags plugin example using jquery.tagsinput.js plugin

    Open Post

    PHP AngularJS CRUD with Search and Pagination Example From Scratch

    PHP AngularJS CRUD with Search and Pagination Example From Scratch

    Open Post

    How to add charts in Laravel 5 using Chart JS ?

    How to add charts in Laravel 5 using Chart JS ?

    Open Post

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

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

    Open Post

    Laravel 5 amazon s3 file upload tutorial - Part 2

    Laravel 5 amazon s3 file upload tutorial - Part 2

    Open Post