How to List All Available Routing in Laravel Web Application

Introduction

This article has a specific purpose and the content will have a relation to the subject of listing all available routing in Laravel Web Application. The main function for printing the route available in the application based on Laravel framework is quite important. It is to check whether the certain URL of the route is really exist and available. If the route is in the list, there is a big chance that the URL of the route will have a specific output in the web page. So, everyone asking or trying to access a specific page cannot be reckless.

Everyone cannot just try a random URL address of the web-based application powered by Laravel framework. The one exist and available with a higher chance that the URL address will present a certain page is the one available in the route list. Using the command for listing the available route, it will give a correct information about which routes is available for further access.

Continue reading

How to Solve Error Message No application encryption key has been specified

Introduction

This is an article for solving the problem because of the key has not been generated. The problem arise upon configuring a new project or application using Laravel as its framework. After performing ‘composer install’ to build the project and downloading the necessary modules, this error occur. Accessing the application via browser generates the following page with a specific error message as follows :

Continue reading

Laravel Cheat Sheet Command Page

Create a New Project Laravel

composer create-project laravel/laravel folder_name

Model

Create  a New Model

php artisan make:model model_name

Controller

Create a New Controller

php artisan make:controller controller_name

Migration Script

Create a New Migration Script

php artisan make:migrate migration_script_name

How to Solve Laravel Error Message : Call to undefined method stdClass::save()

This article is an article where the focus is about how to solve the error message on the development of a web-based application Project using Laravel as its PHP Framework. But the main point is on generating a new record which is going to be used as a data for testing without even inserting a record from a form or even using a specified query.

For an example, the new record generated below is using PHP Artisan Tinker. But in order to do that, the following prerequisite must be fulfilled :

  1. The direct connection to the database which is going to be used for data testing. The direct connection’s configuration in Laravel web-based application project is defined in a file named .env which is located in the root folder of Laravel web-based application project.
  2. The next is the model which is generated and one way to accomplish it by executing the command ‘php artisan make:model’.
  3. By generating the model, in this context it is the model which is associated with one certain table where it can be used as a proxy or a intermediate to fill or to insert a new record to the table.

The error specified is shown as follows :

Continue reading