Sunday 14 November 2021

How to Set Up Laravel 8 on Your Android Phone


 In this article, I'm going to show you how you can install Laravel 8 on your phone. 

To get the most out of this guide, you should have some knowledge of PHP and you should know what Laravel is. But if you don't, don't worry – I will explain the basics so you can get started.

What Is Laravel?

Laravel is a web application framework with expressive, elegant syntax. It's built on PHP, which means that Laravel is PHP but it makes things easier to work with.

It comes with lots of packages for various features, like authentication, so we don't need to write authentication ourselves. To learn more about what Laravel can do, you can visit the site at laravel.com.

Why I wrote this tutorial

I created this tutorial because I want people interested in programming who don't have a laptop or pc to be able to build things on their phones.

My last post on freeCodeCamp made me realize that people are interested in learning how the tech works, so that's why I'm making more guides like this.

So let's dive into it. In this tutorial I am going to show you how you can install composer.php and use it to set up Laravel 8 on your phone 🔥🔥.

I am Precious Oladele, and I'm almost 19 this month 🥴. I'm from Nigeria and I will be taking you through this process. And if you're wondering how I know so much about this, it's because I also don't have a laptop so I explore with my phone instead 😎.

Requirements

To go through this tutorial, you'll need an Android phone with V6.0+.

Set up

We need to head over to the Play Store and download Termux:

Termux is a Linux-based system which we can use on our phones. It's as simple as using your regular Linux – you can install anything, even Kali, Ubuntu, or whatever you want. But for this tutorial we will be using it to set up Laravel 8 on our mobile phone.

Download composer

Before we download composer, we need to open up our Termux app and type in this command:

termux-setup-storage

It'll ask you for storage permissions, so go ahead and click accept. Once you're done head over to https://getcomposer.org/download/.

We need to grab everything there. But before that we need to install PHP so we can use it in our app. To do that in your Termux, type in the following command:

apt install php 

and click enter. You should see this:

Once that is done head over to the composer page and grab the code. We need to do this because Termux is Linux-based. If it was Windows there would be a simple button to download composer.exe there.

Copy the whole code and head over to Termux where you can paste it in. Then click enter.

When composer is installed you should see something like this:

How to Install Laravel 8

Before we install Laravel 8, let's check to see if we have a composer.phar file. In your Termux type this command:

ls

and hit enter. You will see the available files there.

You can see the composer.phar file and a storage folder. The storage folder grants access to your file manager. Remember the termux-setup-storage command you wrote first.

Now let's install Laravel 8. To do so we can either create a project or just install it globally. But it's a bit of a long process when installing it globally on your phone because you need to set a path and so on, and it can be pretty confusing. So in this guide we will create a project instead.

In your Termux go ahead and type this:

php composer.phar create-project laravel/laravel myapp

myapp is just the project name – you can change it to whatever you want. Then hit enter and wait for the magic to happen.

When you see the below, it means that Laravel has been installed:

Easy as pie. Now to test it, you can cd into myapp by typing cd myapp. Then you can run the Laravel server with php artisan serve.

Voilà – development has started 🔥

Now you can open http://127.0.0.1:8000 in your browser and see that Laravel is running:

Also make sure you do this so your Termux app won't force close when you are coding: 😎

That's it!

Thanks for reading. I hope you learned something from this tutorial. You should now be able to install Laravel on your Android phone and start using it to build apps.

 

Wednesday 31 March 2021

Install laravel on windows10 xampp

 

Install laravel on windows xampp. In this post, we will show you how to install laravel latest version on the windows 10 xampp step by step with the composer using cmd.

This how to install laravel on windows xampp step by step tutorial will guide on how to install and setup laravel latest version(7,6,5) on windows 10 xampp with composer. As well as, short description of “what is laravel framework”.

What is Laravel?

Laravel is a free open source “PHP framework” based on the MVC design pattern.
It is created by Taylor Otwell. Laravel provides expressive and elegant syntax that helps in creating a wonderful web application easily and quickly.

How to Install Laravel on Windows 10 Xampp

Follow the below simple and easy steps to install laravel 5, 6, 7 on windows 10 xampp and ubuntu with composer:

  • Download and Install Composer
  • System Requirement
  • Create a Project
  • Run the Application on Development Server

Note: If you install laravel in the ubuntu system. Must Read, How to install composer in ubuntu, Click Here

Step 1: Download and Install Composer

Before installing laravel on windows. first of download composer on windows system. If you already composer download / installed Composer.  go to STEP 2, otherwise follow the steps.

Click  Download Composer from www.getcomposer.org

install composer

Run the setup and Install Composer.

install composer

Next the window will display the resume of the settings, click “Install” to continue.

install composer

If you have any proxy URL enter here, don’t know to leave it to click next to

install composer
install composer

The setup wizard will download the required files from getcomposer.org. Your installation will be completed.

install composer

Composer installed successfully. Click to finish button and move to the next step.

install composer
install composer

Open command prompt & type cd C:\xampp\htdocs

install composer

Step 2: Server Requirements

The Laravel framework has a few system requirements. Before we will install laravel 6 on windows, read some system requirements.

  • PHP >= 7.2.0
  • BCMath PHP Extension
  • Ctype PHP Extension
  • JSON PHP Extension
  • Mbstring PHP Extension
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension

Step 3: Install Laravel

Type the command In the command prompt => composer create-project laravel/laravel Project Name. It will install a laravel new setup on your windows xampp:

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

Wait for Laravel install on windows system.

install laravel

Step 4: Run the Application on Development Server

In this step to use the php artisan serve command .it will start your server locally

php artisan serve

If you want to run the project diffrent port so use this command

php artisan serve --port=8080 

You have successfully install laravel on windows, Now Go to the browser and hit the

URL : http://localhost:8000/blog

If you are not run php artisan server command, direct go to your browser and type the URL

URL : http://localhost/blog/public/

Laravel  Installation Process completed go to the browser and hit URL. http://localhost/project-name /public/, you will be seen.
install laravel

Server Error 500 when accessing Laravel 6 (Solve)

Download New Laravel Setup and Run, It will show server error 500 when accessing Laravel 6

If your using ubuntu machine. open your terminal and go to your project root directory and type the command in command prompt :

sudo chmod  -R 777 storage

sudo chmod -R 777 bootstrap

Conclusion

In this how to install laravel on windows XAMPP, You have learned how to install the latest version laravel 5,6,7 on windows 10 with the composer by using cmd.

 

Saturday 13 October 2018

Laravel vs Codeigniter : War of the Best PHP Frameworks


We all know that both Laravel and CodeIgniter are massively famous among PHP programmers. We always focus on selecting the best Technologies when we are developing a website application. It’s the Challenging task to choose the correct ones between Laravel and Codeigniter. We always confused to choose Best PHP Framework. Here we are going to discuss the battle of the strongest PHP Frameworks Laravel vs Codeigniter.
Both Frameworks have their own Pros and cons, It depends upon your requirements. larval and Codeigniter are similar in many ways. Both Laravel and Codeigniter are highly famous among programmers. But the question is which one is the Best PHP Framework?

                                           CODEIGNITER

CodeIgniter is an open-source PHP framework. It is one of the most popular, easy to use and flexible PHP frameworks available. It is perfect for web applications development with advanced features. CodeIgniter makes a code compact, which makes it fundamentally basic and quick for CodeIgniter developers. furthermore, Codeigniter comes with a rich set of libraries and offers a very simple interface and logical structure to access those libraries.

                                              LARAVEL

Laravel is popular and trending PHP Framework with high speed and various module extension. It is a powerful, flexible and well-documented PHP framework. Laravel Framework is an open source framework of PHP. It follows model view control(MVC) Model.
     Laravel offers High-level security. Laravel Framework Supporting Products and Packages. Developing web       applications Laravel offers expressive elegant syntax. With Laravel Some of the tasks are commonly performer like  Routing, sessions, authentication that made easier.

           DIFFERENCE BETWEEN LARAVEL AND CODEIGNITER
  •                                Support for PHP 7
  • PHP 7 comes with new features with that programmers can enhance the performance of web applications. Both Laravel and Codeigniter support version 7 of PHP. While developing and testing CodeIgniter on PHP 7 Programmers Highlighted the issues faced by them.
  •                                     Eloquent ORM
  • Laravel enables developers to take advantage of Eloquent ORM. Smooth ORM additionally enables users to interact with databases straightforwardly. Through the particular model of individual database tables.
    •                                Built-in Modules
    • Laravel is designed with built-in modularity features. Laravel enables developers to separate a Project into small Modules that can be reused. But when it comes to Codeigniter, It is not designed with built-in Modularity features. To create and maintain Modules in Codeigniter it requires CodeIgniter developers.
    •                               Support for Database
    • A database can be any type of both PHP framework support an array of a database. Including MySQL, PostgreSQL, Microsoft Bi and MongoDB. But CodeIgniter supports a number of database including Oracle, Microsoft SQL Server, IBM DB2, Oriented. Codeigniter supports a high number of the database then Laravel.
    •                          Database Scheme Development
    To simplify Database Migration Codeigniter does not Provide any specific database. Without writing of any complicated code Laravel database features makes it easier for programmers to modify and share the database schema of application.
    Be that as it may, with Laravel database skeptic relocations highlights makes it less demanding for software engineers to change and offer the database mapping of the application without composing any unpredictable code.
    When it Comes to Battle of Comparison Laravel is Better Framework significantly. Because of the coding pattern which is the most favored for its elegant look and features. Along with this, it also supports robust application development in no time.

Sunday 16 April 2017

What is Laravel?

                                                   
Laravel is a open-source and powerful PHP MVC (Model View Controller) web framework, created by Taylor Otwell and intended for the development of web applications. Laravel has shaken up the PHP community in a big way - especially when you consider that version 1.0 of Laravel was only a couple of years ago. It has been generating a lot of buzz with the promise of making web applications fast and simple to create. Using Laravel, you can build and maintain high-quality web applications with minimal fuss.
 

Laravel is a prominent member of a new generation of web frameworks. So, what is we framework? Basically, a web framework makes it easier for you to develop your application. Most sites have a common set of functionality and a framework is something that prevents you from re-writing this each time you create a website.

It has a very rich set of features which will boost the speed of Web Development. If you familiar with Core PHP and Advanced PHP, Laravel will make your task easier. It will save a lot time if you are planning to develop a website from scratch. Not only that, the website built in Laravel is also secure. It prevents the various attacks that can take place on websites. 

Laravel comes with a lot of resources out of the box, it has a cool router, eloquent for model repositories, swiftmailer for the mailing, blade engine for your templates, a system to create your migrations, a cache component to cache everything you want, a monolog logger, etc.

Here is the some interesting features that make Laravel best -

  • Modular packaging system with a dedicated dependency manager
  • Eloquent ORM (object-relational mapping) is an advanced PHP implementation of the active record pattern 
  • Different ways for accessing relational databases though Routing
  • Reverse routing defines a relationship between the links and routes 
  • Orientation toward syntactic sugar
  • Utilities that aid in application deployment and maintenance
    easy authentication by providing a simple & easy to use interface
  • Automatic pagination simplifies the task of implementing pagination
  • IoC containers make it possible for new objects to be generated by following the inversion of control (IoC) principle
  • Blade templating engine combines one or more templates with a data model to produce resulting views etc.

Advantage of Laravel -

Laravel embraces a general development philosophy that sets a high priority on creating maintainable code. By following some simple guidelines, you should be able to keep a rapid pace of development and be free to change your code with little fear of breaking existing functionality. Laravel achieves this by adopting several proven web development patterns and best practices.
  • Single Responsibility Pattern
  • DRY (Don’t-Repeat-Yoursel)
  • Convention over configuration
  • Unit testing

Wednesday 8 March 2017

Programmer can be a Good Life Coach


When people are doing physical tasks, it is easy to assess how much they have done for a day. But when you are sitting and facing a computer every day, most people assume your job is way too easy. Programmers are often at the receiving end of such comment and wrong impression. They spend most of their lives in front of a machine; other people think they are machines as well. However, what other people don’t realize is that programmers are well-driven and highly motivated individuals. They strive to perfect their tasks and achieve their goals while in a deadline. Here are a few things people don’t usually realize about programmers:
  • They are Perfectionists
    One of a programmer’s tasks is to correct errors by making appropriate changes and then rechecking the program to ensure that the desired results are produced. This would entail a lot of checking and reviewing for errors over and over again until it is perfect.
But they understand that before you achieve perfection, you’ll have to work hard for it.
    Programmers run multiple tests to ensure that they come up with the favored result and correct instructions.
  • They know that working in a team is important.
    Most programmers work in a team during a project. Each of them is assigned specific tasks to perform.
But everyone needs to step up individually.
    Everything that one programmer adds or deletes in the project could either make the project better or worse. So programmers need to do a good job individually for the team to be more productive.
  • They are frequently seen working alone
    You can see programmers cooped up in their own workstations or in front of their computer, focusing only on their work.
But they are considerate of others.
    They would document what they have edited and insert comments to guide other programmers about the program. They also help in making the instructions and manuals for end users.
  • They can be irritable at times
    Programmers may be working on a code for weeks to months and it could just be ruined by one click. They put a lot of work and effort into a project when things go wrong they feel frustrated.
But they are patient most of the time.
    Amidst all the errors, stress and hysteria they encounter, a programmer learns to be patient, retrace his steps and calmly figure out what the problem is.
  • They have wild ideas.
    There are no limits on what programmers can achieve. Programs nowadays range from absurd to very useful applications.
But they are motivated in fulfilling those ideas.
    Programmers invest a lot to every project they are set to accomplish. Some startups may not even gain any monetary reward for their work at the beginning. But they know that taking a risk on something you really believe in could help you attain success in the future.
  • They are goal-oriented.
    Programmers have one goal and that is to succeed.
And most of the time, they achieve that goal.
So, who can better motivate you to reach your goals than programmers who face multiple errors and problems every day before they can achieve their goal?

Friday 24 February 2017

step by step installation laravel on windows wamp

step 1 : First of all download and run cmd prompt

1
d:\xampp\htdoc\laravel> composer global require "laravel/installer=~1.1"

Step 2 : now install laravel or create a project on laravel

1
2
3
4
5
Via Composer to Create-Project Like (Project Name ng4free and dir name also ng4free)
run this on cmd
d:\xampp\htdoc\laravel> composer create-project laravel/laravel ng4free
or
d:\xampp\htdoc\laravel>composer create-project laravel/laravel {directory} 4.2

Step 3 : now fresh this command

1
->d:\xampp\htdoc\laravel> php artisan fresh

step 4 : crate a new generate key laravel

1
->d:\xampp\htdoc\laravel>d:\xampp\htdoc\laravel>php artisan key:generate

step 5 : when your site any Maintenance to this command used

1
2
Start Maintenance Mode
->d:\xampp\htdoc\laravel\ng4free>php artisan down

step 6 : when your site live mode to this command used

1
2
Stop Maintenance Mode
->d:\xampp\htdoc\laravel\ng4free>php artisan up

step 7 : now run this command and check your project

1
->d:\xampp\htdoc\laravel\ng4free>php artisan serve

step 8 : run this url on your and Browser

1
http://localhost:8000/

Good Luck

Some usefull command to learn Laravel : run on cmd

1
2
3
4
5
6
->d:\xampp\htdoc\laravel\ng4free>php artisan make:controller TestController
->d:\xampp\htdoc\laravel\ng4free>php artisan serve
->d:\xampp\htdoc\laravel\ng4free>php artisan up
->d:\xampp\htdoc\laravel\ng4free>php artisan down
->d:\xampp\htdoc\laravel\ng4free>php artisan
->d:\xampp\htdoc\laravel> composer create-project laravel/laravel ng4free
1
2
3
4
5
6
<h1>Solution of AngularJs All Problems For ng4free.com</h1>
 <h3>
<a href="http://techieupgrader.in" alt="Link of angularjs Solution example and demo">
My First Web-Application in angularjs,
So I am very happy and 1000+ more then people are used of techieupgrader.in </a>
</h3>