Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to define host and port using Laravel 4.x

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 309
    Comment on it

    Now a days there are n number of website which will move to android. So for every application we have to make API. If we will make our API in laravel 4.x then we will test using Postman. To define our port and to run our API using "Postman" we have to define on which port we have to run our API.

    The step to define host and port using Laravel 4.x and run our API are:

    Step 1: Open Terminal.

    Step 2: Go to the path of our site.For example

    var/www/karmaCircles
    

    Step 3:For defining the port we will write the command.

    php artisan serve --port 7000
    

    By this way we can define the port.

    Step 4: For defining the host and run our API we will write the command

     php artisan serve --host 0.0.0.0
    

    By this we can define host and port and run our API using Laravel 4.x

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: