How to install Baum for Laravel

This is article, as it is stated in the title of this article is specifically written to explain the steps on how to install Baum for Laravel web-based application framework. The installation of Baum is literally needed for managing nested data such as hierarchical tree. Below is how to install Baum on a project based on Laravel web-based application framework.

1. Install Laravel. The steps on how to install Laravel is shown in an article titled ‘Laravel Install into Directory’ which can be visited in this link.

Continue reading “How to install Baum for Laravel”

How to Disable Proxy in Installing Package Using npm

This is an article related on the usage of npm. In the context of installing a specific package or module for Laravel using npm, there is an error related to the connection utilized by npm. So, in this article, the discussion is going to be focused on how to disable proxy in installing package using the npm. Below is the output generated upon executing the command for package or module installation using npm  :

npm install

Below is the full output generated :

Continue reading “How to Disable Proxy in Installing Package Using npm”

Laravel 5 Using Left Join Query

Another form of query which is specifically available upon retrieving it in a web-based application powered by Laravel 5 or any kinds of version Laravel had because it seems as a general feature available is a query using left join clause.

The left join clause is used generally to join two tables where the data retrieved will mainly taken on the first table added with the data on the second table that match the criteria specified that exist between two tables.

Normally, the criteria is represented by a single column id which has the same concept, criteria or meaning in both tables. In the context of this article as an example of scenario, that column will be represented with an id of a user in table ‘user’ which is also exist in another table called ‘role’ which is also point out the id of a ‘user’. Below is the description of those two tables :

Table ‘user’ :

Continue reading “Laravel 5 Using Left Join Query”

How to Solve Laravel Error Message mkdir Permission Denied on Creating a Laravel Project

This is another article which is discussing an error happened at the time for creating a Laravel web-application project. Specifically, this article is describing on how to solve Laravel error message with the specific error message of mkdir():Permission Denied as soon as the command for creating a new Laravel web-based application project is executed. The error message is shown below in detail :

user@hostname:/var/www/html$ composer create-project --prefer-dist laravel/laravel app
Installing laravel/laravel (v5.5.0)

[ErrorException]
mkdir(): Permission denied

create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--no-install] [--ignore-platform-reqs] [--] [] [] []

user@hostname:/var/www/html$

Since the error relates with the failure of creating folder called app for the new created Laravel web-based application below are steps which taken to solve the above problem specifying the laravel error message :

Continue reading “How to Solve Laravel Error Message mkdir Permission Denied on Creating a Laravel Project”

How to solve error Content-Mismatch on Creating Laravel Project

This is an article where the article itself is focusing on how to solve error which is displaying Content-Mismatch error upon creating laravel-based web application project. The error appears when the command for creating a laravel-based web application project using composer command has been executed. The output of the command execution with the error message¬† as shown in the article’s title can be shown below :

user@hostname:/var/www/html$ composer create-project --prefer-dist laravel/laravel app
Content-Length mismatch
http://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
^C
...

After executing a command which is shown as follows :

composer create-project --prefer-dist laravel/laravel app

There is an output which is actually an error shown in the above as follows :

Content-Length mismatch

In order to solve the problem, below is how to actually steps taken :

Continue reading “How to solve error Content-Mismatch on Creating Laravel Project”

How to Stop Submit Form in Javascript with Example

Another article related with Javascript client-side scripting with the purpose of describing how to stop submit form in Javascript itself along with example given is written in this one. To be able to stop form from further submitting because of several reasons where one of them is because the validation process has failed is one of the purpose. In other meaning, it is not necessary to proceed further.

So, below is an example for showing how to stop submit form in javascript in the HTML web page file :

Continue reading “How to Stop Submit Form in Javascript with Example”

How to Define onsubmit on Blade Form Tag Laravel

This is an article related to Javascript and also Laravel PHP Framework. In this article, the focus is about how to define onsubmit on blade form tag laravel. The main purpose for defining onsubmit attribute on the blade form tag in Laravel web-based framework is to try to validate user input using Javascript.

For an example, if there is a blade form tag defined in a blade view template file as shown below :

Continue reading “How to Define onsubmit on Blade Form Tag Laravel”