Laravel 5.2 application download using composer & enable laravel user authentication.


The installation technique is only for Windows Machine with Xampp/Wamp Server.

1. Download & Install Composer in your local machine. Click here to download

2. Now Go to your server root directory using command prompt. (ie. C:\wamp\www)

3. run the following command


composer create-project laravel/laravel laravel

4. Your Laravel Project is now ready to browse. By Default laravel project root directory is public folder. You can Change server.php filename to index.php file thus the main project directory can be browse.

5. Lets Install Authentication Scaffolding Files. Go to your project root folder using command prompt (ie. C:\wamp\www\laravel) and run the following code


php artisan make:auth

6. Now This is the time to Create your database. You can create your database before too. create a database name as like “laravel32”

7. Connect your created database with your laravel project. You Can use .env file at project root folder to manage your database connection. lets open the file .env in your text editor and change the database connection info like below:


DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel32
DB_USERNAME=root
DB_PASSWORD=null


8. Now You have to run the migrate command to generate user table for managing authentication. This code will create user table and others dependencies tables.


php artisan migrate

9. One Task already left. Create a .htaccess file to the project root directory and copy & paste the below code in htaccess file.


<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /laravel/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

10. That is it. Do a registration and login with the registered user.

11. Browse & Enjoy

Here is a sample code developed using laravel 5.2 with authentication, user management system enable. You can download from my github account.

Github link: https://github.com/ziyed/laravel-5.2

Advertisements

CakePHP 3 project creation process using composer technique, very easy and faster.


The installation technique is only for Windows Machine with Xampp/Wamp Server.

1. Download & Install Composer in your local machine. Click here to download

2.  Now Go to your server root directory using command prompt. (ie. C:\wamp\www)

3. Run the Following code Now


composer self-update && composer create-project --prefer-dist cakephp/app bookmarker

4. Well Done!! You just setup a fresh CakePHP latest version Application using composer. Now modify your application based on your desire requirement.

5. Now You Need to Run the Code. Go to Your project directory and run the following code


bin\cake server

6. You will get a url like (http://localhost:8765/). Copy & browse.

cakephp3

7. Setup you database connection and use the cake console for rapid development.

Here is the sample CakePHP 3 Project for you in case you have a mistake. Download and Enjoy.

Github Link: https://github.com/ziyed/CakePHP3