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 | | 6694 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 | | 14027 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 | | 15686 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 | | 10995 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 | | 1302 Viewer | Category : Sublime
READ MORE


str_random() LIKE Query Paypal Integration Xampp Twitter Bootstrap DATE_SUB Branch Version Convert json() Bootstrap maxlength plugin screenshotmachine.com API Packages AngularJS TrustAsHTML Filter Tag Manager plugin Old RSS Feed Special Bootstrap-lightbox Plugin Chat Blocked Subscription google recaptcha code Progress Bar Socket.io npm refs phpword Artisan Paypal Payment Gateway Parameters Sublime text 2 Prompt modal Object Force MVC COUNT() INTERVAL Grayscale Image SUM() Mail toSql Upgrade preg_match array_combine Hard Tooltip Loop Notification Middleware Tracking Application Nodejs summernote Sitemap Dialog box Google Map Highlight JS Request PHP artisan Route Array AngularJS Filter mod_rewrite Google API FadeIn Git Codeigniter 3 Lavacharts CURL thujohn/twitter package inner join Module Confirm Box ACL Laravel typed.js plugin Update Join str_replace guzzle http client Express Draggable toArray() away() File Upload Null Mailchimp API Enable Search gulp DB strpos MySQL Subquery Jquery Dialog Box roumen/feed package SUBSTRING_INDEX() array_map Bootstrap Notify Plugin orderBy Database strtolower Each Div Remote Website Image Upload Email Verification XSS Linux Sendgrid Laravel Cashier Parsley Components & Slots daterangepicker roumen/sitemap Localization WHERE Query Namespace Laravel 5.4 laravel-elixir csrf_token glob Access Record Key Constraint chmod Rewrite Chart upload_max_filesize Algolia Package bootstrap tagsinput Node JS clipboard.js Laravel 5.3 Solve Calculate Highchart RAND() pngquant User Control Scout Package Laravel 5.5 Admin Panel pop() PHP Add Exists MSSQL