Laravel Database Migration

Please follow these steps to create successful migration.

1) Please run this command to create migration file
php artisan migrate:make create_users_table

2) You can check the migration file in folder app/database/migrations (File name: eg 2014_12_01_064050_create_users_table.php)

3) You can add the table fields in this file with proper syntax.

4) Run this command

php artisan migrate

Note: If table is not created then please give the 777 permission to migration file.

How to redirect the site to m.example.com

How to redirect the site to m.example.com when you are running the site on mobile device -

#‪#‎BEGIN‬ MOBILE (do not edit below this line)
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ((.*iPhone.*)|(.*iPod.*)|(.*BlackBerry.*)|(.*Android.*Mobile.*)|(.*Windows\ CE.*)|(.*IEMobile.*)|(.*Opera\ Mini.*)|(.*Opera\ Mobi.*))
RewriteCond %{HTTP_COOKIE} !dm_show_classic
RewriteCond %{QUERY_STRING} !no_redirect=true [NC]
RewriteCond %{HTTP_HOST} ^www\. [NC,OR]
RewriteCond %{HTTP_HOST} ^[0-9a-z-]+\.[a-z]+$ [NC]
RewriteCond %{REQUEST_URI} ^/_dm/s/ [NC,OR]
RewriteCond %{REQUEST_FILENAME} !\.(jpg|gif|png|css|js|txt|ico|pdf|bmp|tif|mp3|wav|wma|asf|mp4|flv|mpg|avi|csv|doc|docx|xls|xlsx|ppt|pptx|zip|rar|tar|gz|dmg|iso)$ [NC]
RewriteBase /
RewriteRule ^(.*)$ http://m.example.com/ [R,L]
#‪#‎END‬ MOBILE

Q. What is Magento?


A. Magento is a feature-rich eCommerce platform built on open-source technology that provides online merchants with unprecedented flexibility and control over the look, content and functionality of their eCommerce store. Magento’s intuitive administration interface features powerful marketing, search engine optimization and catalog-management tools to give merchants the power to create sites that are tailored to their unique business needs. Designed to be completely scalable and backed by Varien's support network, Magento offers companies the ultimate eCommerce solution.