Latest Post


How to count number of files in folder and remove all files in folder example in Laravel 5 ?

you are working on laravel framwork and you want to count how many image or files in folder and print of front then you can do with laravel "File" class.you can also count in core PHP by using glob() but if you are working on laravel then you have to use 'File' class library and it is easy and more flexible to use. If you also want to remove all the files Or images in specific folder then you can delete by using "File" class function. sometimes we need to delete files in the folder. that way: <pre class="language-php"> use Input; use File; class HomeController extends AdminController { .....

By Hardik Savani | January 13, 2016 | | 3478 Viewer | Category : Laravel
READ MORE

How to check undefined, empty and null in JavaScript/JQuery ?

If you are working on jquery and However you want to check variable is undefined or not then you can easily check by typeof operator, which is simple, fast and cross-platform: <pre class="language-javascript"> if(typeof i == "undefined"){ alert('undefined'); } </pre> If you are working on jquery and However you want to check variable is empty or not then you can easily check by compare with empty string: <pre class="language-javascript"> if(i == ''){ alert('Empty'); } </pre> If you are working on jquery and However you want to check variable is null or not then you can easily che.....

By Hardik Savani | January 12, 2016 | | 1586 Viewer | Category : Javascript jQuery
READ MORE

How to get last executed mysql query in laravel ?

If you are working on laravel framwork and you use query builder of laravel 5. but you want to get last executed mysql query from laravel. If you are working on laravel 5 then you have to first enable query log that way it can be store query log. At last getQueryLog() through you can get last executed query. I give you example of how to get last executed mysql query. you can use example as following example. <pre class="language-php"> public function querylog() { DB::enableQueryLog(); $item = Item::find(2); $last_query = DB::getQueryLog(); print_r($last_query); } </pre> Try this......

By Hardik Savani | January 11, 2016 | | 1916 Viewer | Category : Laravel MySql
READ MORE

Mysql procedure with pagination in laravel 5?

You are working on laravel with mysql database. you had created mysql procedure for get data and you want to call procedure with pagination in laravel 5 then you can not directly make pagination as laravel document.If you are using directly MySQL stored Procedure in your controller, model or repository and you want to give pagination like this way : <pre class="language-php"> $data = DB::select(DB::raw('CALL hardik("hari")'))->paginate(5); </pre> This way you found error in your Laravel 5 website. we can't give directly this way pagination because your procedure will get all the data fr.....

By Hardik Savani | January 11, 2016 | | 6273 Viewer | Category : Laravel MySql
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 | | 1346 Viewer | Category : Laravel
READ MORE


Localization Null Codeigniter Object Foreach Validation Object to Array response() Chart Data Elasticsearch Directory Controluser Google OAuth unicodeveloper/laravel-password Dropbox API setInterval() Trigger PHPUnit Request getQueryLog Parameters Segment Windows xoxco tags input toastr js bootstrap-progressbar.js upload_max_filesize QR Code INTERVAL Particular AngularJS TrustAsHTML Filter Loading Ionic Packages Multiple Configuration Multi Auth Tutorial filesize() Modal Bootbox.js SMTP Command Twitter API Blocked Capitalize Laravel Cashier maatwebsite Script webpatser/laravel-uuid Switchery JS Update Schema ServiceProvider Animation DB::raw() MassAssignmentException mac datatables filter Interfaces Executed Typeahead JS X-editable Plugin Request Method Client side validation Admin Panel Interface ID Local Index Origin split Key Constraint API Sitemap roumen/feed package DATE_SUB thujohn/twitter package validator.js refs Bootstrap Star Rating Plugin Dropzone.js laravel-elixir Current Attribute Behance API Path public_path Redis Timepicker Determine Form JS Plugin Mail sven/artisan-view package Number milon/barcode characters Image Upload PHP Express pngquant Example orderBy gravatar array_map Technology max_file_uploads Payment Gateway CloudConvert API PHPExcel Amazon S3 MySQL Subquery Scratch Percentage User FadeIn Bootstrap show password Plugin mod_rewrite bplist-parser String mCustomScrollbar Plugin Xampp Phonegap PHP artisan Artisan Command Botdetect Captcha Global Variable lowercase bootstrap tagsinput Components & Slots Force FIND_IN_SET() PayPal CRUD parse Highlight JS away() Sendgrid socket Append Authentication Image guzzle http client Listener Laravel 5.3 Popup Box Vue.JS Chat