Latest Post

How to add Delete cascade to existing column in Laravel 5, without remove column?

Whenever you are making table using migration with foreign key. like i give you example as under and you forgot to set delete cascade on table then how can you add delete cascade in existing table. so let's see your migration : <pre class="language-php"> public function up() { Schema::create('locations', function (Blueprint $table) { $table->increments('id'); $table->integer('id_option')->unsigned(); $table->foreign('id_option')->references('id')->on('options'); $table->decimal('lng',11,8); $table->string('streetAddress1'); $table->decimal('lat',11,8); .....

By Hardik Savani | January 24, 2016 | | 2159 Viewer | Category : Laravel
READ MORE

How to Solve overwrite index.php in windows wampserver ?

Many time you have face a problem in windows wampserver or virtualhost of index.php file overwrite. i also fetch that problem like: http://localhost/test/index.php/admin In this url you can see index.php wtite in url, but URL must be without index.php. so if you are using windows wampserver then you can easily solve out this problem by folowing step: <strong>1. Open File : </strong>C:\wamp\bin\apache\Apache2.4.4\conf\httpd.conf <strong>2. Find : </strong> #LoadModule rewrite_module modules/mod_rewrite.so and Then, Just Change, Only remove ‘#’ sign. <pre> #LoadModule rewrite_module mo.....

By Hardik Savani | January 23, 2016 | | 925 Viewer | Category : PHP Wampserver Installation
READ MORE

How to set gmail configration for mail in Laravel?

If you are working with laravel and you need to setup gmail configration for send email. if you want to set configration of gmail then first go to mail.php file, you are work on laravel 4 and laravel 5 its not issue, because you can set comman setting for both version of laravel framwork. <strong>Mail.php</strong> <pre class="language-php"> 'driver' => smtp, 'host' => smtp.gmail.com, 'port' => 587, 'from' => ['address' => 'test@gmail.com', 'name' => 'Test'], 'encryption' => tls, 'username' => test@gmail.com, 'password' => test123, 'sendmail' => '/usr/sbin/sendm.....

By Hardik Savani | January 22, 2016 | | 4057 Viewer | Category : Laravel
READ MORE

How to set vertical align middle div by CSS in HTML?

If you want to set vertical align middle text, image, div etc then you can set easily by using following example. you can give vertical align middle by saveral way. i also give you example with output. you use any of the example of vertical align middle by css. I also provide saveral example with difference css so you can easily find your solution. <strong>Example 1:</strong> In this example you can set vertical align middle using display:table and display:table-cell property of css. <div style="width: 500px;background:green;height: 150px;border:1px solid red;display: table;"class="outter"> .....

By Hardik Savani | January 22, 2016 | | 919 Viewer | Category : HTML CSS
READ MORE

How can make an array from the values of another array's key?

If you are working on PHP or other PHP framework and you want to create array of another array value. now you can see on following example how can you make array form another multidimensional array key's. For example you have array like: <pre class="language-php"> $multi = array( ['1'] => array('id'=>1,'name'=>'hardik'), ['2'] => array('id'=>1,'name'=>'vimal'), ['3'] => array('id'=>1,'name'=>'harshad'), ) </pre> but if you want to this multi-dimensional array just like this way: <pre class="language-php"> $test = array('hardik','vimal','harshad'); </pre> so, we can make t.....

By Hardik Savani | January 21, 2016 | | 522 Viewer | Category : PHP
READ MORE


Lightbox Phonegap JWT Plugins socket DATE_SUB Column Ip Address Command Ckeditor Google Map AngularJS Filter jquery.lazyload.js Sort JSON Control Base URL daterangepicker Capitalize Localization Strip Tags response() Frontside Validation Zoho mail SUM() array_change_key_case Ionic Sublime league/flysystem-dropbox Jquery UI Bootstrap show password Plugin parse enableQueryLog User toArray() Toggle Backup Delete Force bootstrap-progressbar.js ngclipboard.js no-captcha strpos Botdetect Captcha Payment Gateway Source Code Magento Socket.io Laravel Cashier setInterval() CSS Technology Client side validation Autocomplete Behance API bootstrap-multiselect plugin 404 error page Cordova str_replace Tutorial CRUD Datetimepicker Authentication Old Page Form Jquery Subscribe validator.js jquery.email-autocomplete.min.js intervention/image DB Statement Tracking guzzle http client Query Builder oauth Bitbucket Express refs Global Variable Lavacharts Custom Command chumper/zipper Multiple Stripe Executed Convert npm google recaptcha code Add PostgreSQL Branch Event Eloquent-Sluggable Package SEO LIKE Query Character Each FadeOut Remember me Git gulp Directory uppercase Pagination Jquery Plugin glob Email Download Hard Import URL Pixel characters Mysql Concat Form Validation jQuery Version FILTER_VALIDATE_URL Foreign Key strtolower Highchart clearbit API Prompt modal Current Carbon DB Paypal Payment Gateway Chart Site Calculate MVC Linkedin API toSql Codeigniter Installation Key Constraint Dropbox API Typeahead JS Paging ANDROID_HOME Top Master lowercase Current Page roumen/sitemap Interface clockface plugin Google Chart Facade Where In Query