I don't trust my memory well so I'll document some migrations command
php artisan make:migration add_paid_to_users --table="users"
This line will create a book table migrations
php artisan make:migration create_books_table --create="books"
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateBooksTable...
Saturday, 25 November 2017
Wednesday, 8 November 2017
How to get the URL of the current page in C#
Lot of times I checked the URL for doing coding. To get all the possible values put these codes
![CDATA[
Response.Write("HttpContext.Current.Request.Url.Host " + HttpContext.Current.Request.Url.Host + "");
Response.Write("HttpContext.Current.Request.Url.Authority " + HttpContext.Current.Request.Url.Authority+ "");
Response.Write("HttpContext.Current.Request.Url.Port " + HttpContext.Current.Request.Url.Port+...
Monday, 6 November 2017
Using SQLite in Laravel Applications
I have been playing with Laravel and MySQL just recently and I have been enjoying using it on one of my recent project. It's an eCommerce system done with Laravel 5.3 with Paypal and Stripe Payment. I have implemented a authorize and capture mechanism. I've been using MySQL for database which works as expected but my problem is I'm using 3 machines for...
Sunday, 5 November 2017
Laravel Default Env File Content
It is often helpful to have different configuration values based on
the environment where the application is running. For example, you
may wish to use a different cache driver locally than you do on your
production server.
To make this a cinch, Laravel utilizes the DotEnv PHP library by Vance
Lucas. In a fresh Laravel installation, the root directory of your application
will contain a .env.example...
Friday, 3 November 2017
Solr Sample Code and Articles
https://lucene.apache.org/solr/4_0_0/tutorial.htmlhttps://github.com/pkainulainen/spring-data-solr-exampleshttps://www.petrikainulainen.net/programming/solr/spring-data-solr-tutorial-configuration/http://nerdcenter.de/solr-multicore-installation-configuration/http://www.params.me/2012/11/sample-solr-14-application-code-in-java.htmlhttps://github.com/paramsethi/solr-setuphttp://cmusphinx.sourcefor...