Latest Post


How to redirect route with querystring in Laravel 5?

Most of time, we work on back-end and we require to redirect route or url from controller with pass query string parameter. so laravel provide very simple way to pass query string parameter with redirect route. In following example you can see how it is possible. In Bellow example you can see i did added highchart() function for route haddle. in that function i redirect "home" route with 2 parameter as query string like id and itemid, so url will be like this way: <pre>http://test.hd/home?id=2&itemid=3</pre> And controller function will be this way: <strong class="example">Example:</strong> .....

By Hardik Savani | April 8, 2016 | | 14800 Viewer | Category : Laravel
READ MORE

How to set value as key in PHP array?

Sometimes, we work on big php or other framework projects and we need to change array value as array key at that time you can learn from this post. In this example you can do that without foreach loop. For example if you have all country array but that array have key like 1,2,3,4... etc and value is country. at that time you need to make array like country as key and value both that way you can store it on database table directly. We can do that using array_combine() of PHP array. array_combine() take two argument and both should be array. so, let's see exmple. <strong class="example">Examp.....

By Hardik Savani | April 8, 2016 | | 958 Viewer | Category : PHP
READ MORE

Laravel 5 client side validation using Parsley.js example

In this post i want to show you to add client side js validation. Parsley is javascript library that provides lot's of validation for the form. this library you can also you with PHP, .net etc language. But in this post i did give you example with laravel 5 framework. Parsley.js is pretty interesting js library. Parsley.js through you can add required, Email, Number, Integer, Digits, Alphanum, Url, Minlength, Maxlength, Length, Min, Max, Range, Pattern, Check etc validation provide. you can also add custome validation message for this validation rules. you have to just give attribute of Pars.....

By Hardik Savani | April 7, 2016 | | 15937 Viewer | Category : Laravel Parsley JS
READ MORE

How to generate route with query string parameter in Laravel 5?

Whenever you require to add query string parameter in link url, i mean in route then you generate link with query string parameter using Laravel 5 URL facade. most of new developer doing this way: <pre class="prettyprint lang-html"><a href="{{ URL::route('home') }}.'?id=1&test_id=2'">Test</a></pre> But you should do it that this way, bellow example you can see how it done. <pre class="prettyprint lang-html"><a href="{{ URL::route('home',['id'=>'2','test_id'=>'3']) }}">Test</a></pre>

By Hardik Savani | April 7, 2016 | | 16496 Viewer | Category : Laravel
READ MORE

How to recursively change the permissions of files and directories in ubuntu?

Sometimes, we need to give recursively change the permissions of specific files and directories in ubuntu OS. you can open terminal and run bellow command, so let's try this way : <strong class="example">Example</strong> <pre>sudo find foldername -exec chmod a+rwx {} ";"</pre> Give more specific! <pre>sudo find foldername -type d -exec chmod 755 {} ";"</pre> <pre>sudo find foldername -type f -exec chmod 644 {} ";"</pre>

By Hardik Savani | April 6, 2016 | | 809 Viewer | Category : Ubuntu
READ MORE


Delete Branch Application SEO Windows Moment JS Automatically Access Column oauth Index Attr Middleware laravel-elixir PHP Email php artisan serve basename() screenshotmachine.com API DATEDIFF() DB::raw() Linkedin API Capitalize Typeahead JS tagsinput.js croppie.js Array refspec 500 error page CASE_LOWER Demo length league/flysystem-dropbox Switchery JS Loading Gmail Parsley Xampp Bootstrap-lightbox Plugin stevebauman/location composer package clipboard.js Laravel 5.4 meta http-equiv tag XML GET Ajax View word-wrap MySQL Subquery Convert Google API Nodejs Snippet Base URL ppa slice() Login With FB gravatar Algolia Package Recursive Query virtual host Database Seeder Controller Javascript Auth Amazon S3 nl2br Confirm Box Controluser Technology Function Laravel 4 API Chat IP Ckeditor Google Map setTimeout() Log Inserted Id Site Redirect Laravel 5 Thumbnails Request Modal File Upload mysqld.sock Grayscale Image Key Constraint Subscribe Exists Excel Components & Slots Key Scout Package Count Allow Interface Fullcalendar JS Authentication File gmaps.js Billing hasColumn maatwebsite Twitter Bootstrap throttle Pixel Loop Strip Tags Modular Cordova Source Code parse Top Configuration Particular str_random() First PingPong Bootstrap Star Rating Plugin Datetimepicker validator.js array_combine webpatser/laravel-uuid Frontside Validation Artisan Download Codeigniter Enable Repository Pattern SweetAlert Plugin Pagination Where Not In Query Subscription Dialog box Laravel Factory jquery.email-autocomplete.min.js Bootstrap maxlength plugin Select Query Version Composer Chart read more str_replace HTML URL ixudra/curl composer package toArray()