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 | | 7565 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 | | 17281 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 | | 18143 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 | | 13363 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 | | 1493 Viewer | Category : Sublime
READ MORE


bplist-parser Ckeditor Control Laravel Builder chmod Update tagsinput.js Sublime text 3 AngularJS Directive Opencart Commit encrypter Terminal helper Admin Bootstrap Theme SUBSTRING_INDEX() ixudra/curl composer package JS Query Value Ionic framework Pull Phonegap SMTP Limit Tutorial asgardcms jquery.email-autocomplete.min.js Import POST Ajax View Artisan Blocked Laravel 5.3 Image Parameters QR Code Bootbox.js Repo clipboard.js REST ID Fullcalendar JS Tooltip toastr js Laravel Object MySql Bootstrap Plugin chumper/zipper Div Multiple upload_max_filesize Linux Log Activity Authentication Client side validation Upgrade AngularJS csv popupMultiSelect plugin length LIKE Query Technology Datetimepicker validator.js DB Gravatar Image Branch Grayscale Image Bitbucket json() Class parse apache2 Lightbox SUM() timestamps milon/barcode Protection intervention/image oauth Twitter API PHP artisan Where Not In Query basename() Socialite Index Packages Field PHPUnit bootstrap-progressbar.js FILTER_VALIDATE_URL Request Folder Numeric Sublime text 2 Cache CASE_LOWER Custom Command Lavacharts CRUD str_replace Ajax Request Autocomplete Mysql Concat file_exists() Twitter OAuth AngularJS TrustAsHTML Filter file_exists Javascript Ubuntu 14.04 csrf_token RSS Configuration Attribute Current Page toSql Kyslik/column-sortable package Top filter_var glob Image Upload webpatser/laravel-uuid Trigger Count Subscription Site GuzzleHttp Modular Bootstrap-lightbox Plugin Datepicker Scratch Facebook API Now SweetAlert Plugin whitespace Convert MSSQL Laravel Eloquent Repository Pattern response() Bootstrap maxlength plugin Laravel 5.2 Delete Query Builder Windows Fetch Sublime Server