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 | | 3222 Viewer | Category : Laravel

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/ and Then, Just Change, Only remove ‘#’ sign. <pre> #LoadModule rewrite_module mo.....

By Hardik Savani | January 23, 2016 | | 1405 Viewer | Category : PHP Wampserver Installation

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' =>, 'port' => 587, 'from' => ['address' => '', 'name' => 'Test'], 'encryption' => tls, 'username' =>, 'password' => test123, 'sendmail' => '/usr/sbin/sendm.....

By Hardik Savani | January 22, 2016 | | 7895 Viewer | Category : Laravel

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 | | 1205 Viewer | Category : HTML CSS

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 | | 664 Viewer | Category : PHP

mysqld.sock Global Variable First Switchery JS WHERE Query Delete Form Validation getQueryLog DATEDIFF() HTML to PDF chumper/zipper AngularJS Object sven/artisan-view package Limit ServiceProvider Ubuntu Paytm Parsley SUBSTRING_INDEX() Demo Components & Slots Javascript ajaxComplete colorpicker Origin QR Code Data Chat Check softDeletes After Issue Sendgrid Validation Bootstrap show password Plugin Laravel Remove oauth IP Chart maatwebsite Sortable Date Format Sitemap Packages validator.js SweetAlert Plugin Attr Log Activity Number Middleware Highchart Artisan Capitalize PHPExcel POST Ajax Fetch FIND_IN_SET() timestamps Parsleyjs Paypal Payment Gateway Sort Protection hasTable Datepicker Admin Panel FILTER_VALIDATE_URL Draggable Add Subscription Email Verification Controluser stevebauman/location composer package Environment API helper Chart.js socket Field length CORS Algolia Package Multiple Laravel Passport Repository Pattern Column Paypal Integration milon/barcode Laravel Resource dompdf Div auth() Gmail Service Provider orderBy DB::raw() ngclipboard.js inner join FadeOut Determine Apache Last Download ID Upgrade Payment Gateway Special FadeIn Join Laravel 5 Path roumen/sitemap apache2 Fullcalendar JS Commit Function Listener Export Composer Namespace Site Bootstrap maxlength plugin mac Tooltip Collapse Top Schema max_file_uploads Select Failed Thumbnails Controller filesize() str_replace Particular Database Seeder Gravatar Image public_path COUNT() Empty Laravel 4 toSql Website mCustomScrollbar Plugin Lavacharts bplist-parser Twitter OAuth strpos