Latest Post


How to add query string automatically on laravel pagination links ?

For example you are working on items module and you have a index page like listing all items with pagination. also you did give search function on items name. I have a bellow query string when i search something and i want to pass that query string on all pagination link. <strong class="example">Query String URL:</strong> <pre>http://text.hd/admin/products?name=test&page=1</pre> But where is problem. when you search any for example "tes" and get the result but when you click on next page you can't filter on name as you did "tes". so at that time we have to appends that query string on pagina.....

By Hardik Savani | March 30, 2016 | | 8929 Viewer | Category : Laravel
READ MORE

How to get Query Strings Value in Laravel 5?

If you want to get Query string value then you can get using Request Facade OR Input Facade in larave 5. But if you was working native PHP then we can get $_GET method. In following example you can easily get parameter value. <strong class="example">URL Example:</strong> <pre>http://text.com/wall?id=23&name=hdtopi</pre> In above query string, you want to get query string value for example id and name. you can get through bellow example. <strong class="example">Route Example:</strong> <pre>Route::get('wall', 'WallController@wall');</pre> <strong class="example">Controller Example:</strong> <pr.....

By Hardik Savani | March 29, 2016 | | 20414 Viewer | Category : Laravel
READ MORE

How to get Ip Address in Laravel 5?

If you are work on laravel 5 application and you require to get client ip address then you can get easy. you don't need to use $_SERVER variable like native PHP, but laravel 5 provide Request facade. you can fetch easy using following example: <strong class="example">Example</strong> <pre class="prettyprint php"> public function ImpressionCount(Request $request) { $input['ip'] = $request->ip(); print($input); } </pre>

By Hardik Savani | March 29, 2016 | | 20398 Viewer | Category : Laravel
READ MORE

Laravel 5 database backup using Laravel Backup Package

In this post, i want to show you how to take database backup using Laravel backup package. this package will provide command to take backup from your live server and that command you can use in crontab file on server, that way you can get backup daily on every hourly etc as you want. Database backup is very important for your projects. This is a proper example and very simple way to use. in this example you can download mysql database backup using laravel backup package. one more thing this will work if you have php 5.5.9 or higher and Laravel 5.1.20 or higher. so let's start from install "La.....

By Hardik Savani | March 28, 2016 | | 16758 Viewer | Category : Laravel
READ MORE

How to create snippets in sublime ?

nowdays sublime is a very popular text edir in the developing field. sublime text editor is provide lots of packages like code formatter, php syntax etc. sublime is also provide snippet. snippet is very intrsting point because if you need to write same code lots of time than you can create shortcut name for that command content. For example if you want to write text "lorem ipsum" then you can just write just "lorem" and get whole lorem text. In following example i create snippet "debug" for debug code of PHP. If you write just "debug" you can find autocomplete with debug snippet and just cli.....

By Hardik Savani | March 26, 2016 | | 1739 Viewer | Category : Sublime
READ MORE


hasColumn split API Subscription auth() Undefined Month orderBy Ajax Request mod_rewrite array_map X-editable Plugin Configuration Where Not In Query Validation Convert Gmail Local Tutorial SUBSTRING_INDEX() CASE_LOWER Apache Tracking 404 error page ANDROID_HOME Paypal Payment Gateway basename() Jquery Plugin Eloquent-Sluggable Package strtolower Permission validator.js screenshotmachine.com API Generate guzzle http client RAND() Bootstrap Tokenfield Plugin gmaps.js Null Page Grayscale Image Barcode popupMultiSelect plugin mac Letter CRUD Current Parsley Codeigniter Bootstrap Plugin Carbon Pull URL setInterval() New Features Pixel Links Character Repo Event Ionic framework Run Project Snippet refspec Reset ServiceProvider socket node.js Windows Database Twitter API Repository Pattern Interface Kyslik/column-sortable package RSS Feed ppa Import Determine scrollTop Axios Upgrade preg_match Twitter OAuth Amazon S3 Interfaces throttle Billing DB Record response() Laravel Passport Backup Middleware maatwebsite voyager package FadeOut Percentage webpatser/laravel-uuid Google Chart JS AngularJS Directive PHP Captcha code select box search Div XSS str_replace Javascript After Environment Sortable Linux php_ini_loaded_file croppie.js array_change_key_case AngularJS select2.js Paypal Integration Now File Upload Laravel Eloquent Terminal Twitter Bootstrap Mediafıre API Git Bitbucket glob DB::raw() CloudConvert API Resize Image Image Gallery Config Example Bootstrap Star Rating Plugin Bootstrap-lightbox Plugin ixudra/curl composer package bplist-parser sven/artisan-view package Allow Join dompdf clearInterval() Authentication Payment Gateway upload_max_filesize Failed Version getQueryLog league/flysystem-dropbox Global Variable