#decodewebin
Explore tagged Tumblr posts
decodewebin · 6 years ago
Text
Tumblr media Tumblr media Tumblr media
DecodeWeb wishes you a very happy Ganesh Chaturthi 2019
1 note · View note
decodewebin · 6 years ago
Photo
Tumblr media
Laravel market share
Laravel is completely free and open source,meaning developers can fork the repository, make some customization, add new functionalities or packages and if everything is fine, those modules or packages are implemented in next version release.
It will not be wrong to say that, Laravel is a package of packages. Some of the packages which are now official packages are:
Passport
Horizon
Cashier
Tinker
Thus we come to this conclusion that, Laravel heads in market share among other PHP frameworks including Codeigniter, CakePHP and Yii.
Table of Contents
Laravel market share
Why do developers recommend Laravel over other php frameworks in 2019 ?
Laravel or Codeigniter, which should I choose ?
How do I install Laravel ?
Advantages of Laravel
Laravel on stakeoverflow
Laravel community all over the world vs India
Laravel requirements
Install Laravel ubuntu 18.04 terminal way
1 note · View note
decodewebin · 6 years ago
Text
Tumblr media
Codeigniter vs Laravel: Head to head comparison
0 notes
decodewebin · 6 years ago
Text
Tumblr media
Phoenix
Reborn from ashes of yesterday.
Ready to chart new oceans of tomorrow
0 notes
decodewebin · 6 years ago
Photo
Tumblr media
What is natcasesort() function in php ?
You have used sort() or other sorting functions in php but natcasesort() function works a little bit differently. natcasesort() sorts an array elements as if we, human sort things lexicographically. Here therefore, case does not matter.
Source: https://decodeweb.in/php/10-not-so-famous-but-powerful-array-helper-functions-in-php/#10-natcasesort
0 notes
decodewebin · 6 years ago
Photo
Tumblr media
What is shuffle() function in php ?
This array function in PHP scrambles an array and generates shuffled array.
Source: https://decodeweb.in/php/10-not-so-famous-but-powerful-array-helper-functions-in-php/#9-shuffle
0 notes
decodewebin · 6 years ago
Photo
Tumblr media
What is range() function in php ?
This is the most interesting helper method provided by PHP in IMHO. This function works on the sequence of numbers and characters till a defined range. It returns an array of ranged values.
Source: https://decodeweb.in/php/10-not-so-famous-but-powerful-array-helper-functions-in-php/#8-range
0 notes
decodewebin · 6 years ago
Photo
Tumblr media
What is array_fill() function in php ?
It is an array helper function which is used to fill an array with user defined values. Moreover, this function can also makes an array with negative index.
https://decodeweb.in/php/10-not-so-famous-but-powerful-array-helper-functions-in-php/#6-array-fill
0 notes
decodewebin · 6 years ago
Text
Tumblr media
What is array_walk_recursive() function in php?
0 notes
decodewebin · 6 years ago
Photo
Tumblr media
How do I install PHP in my computer ?
My previous post shown you an overview of PHP and its working mechanism. Today I am going to show you how you can install PHP and other assisting software in your machine locally. You would be working on your own web server soon. Cheers..!!
Table of Contents
How do I install PHP on Windows 10 ?
How do I install PHP on Linux-Ubuntu 16.04/18.04 ?
–What is PHP CGI exe?
How to install Apache ?
Step 2: Install PHP 7.2 & PHP Extensions
Step 3: Check the PHP installation
How to switch between 2 PHP versions in the same machine ?
Do I need to install other softwares too after PHP installation ?
Step 1:  Install Ondřej Surý’s PPA
0 notes
decodewebin · 6 years ago
Photo
Tumblr media
Dependencies are packages or mostly third party modules/plugins that are required for your project to run. For instance, PHPUnit is an easy to integrate, standalone testing framework so if your application needs unit testing then you need PHPUnit, that becomes a dependency ultimately. Dependency management solves these problems by automating and standardizing.
Managing your dependencies manually in any programing language is an immense pain. This is often why,  in most programming languages these days you may notice that all of them have some implementation of a dependency management system or generally a package manager.
In PHP, we use NPM i.e Node Package Manager in frontend technologies like JavaScript, VueJS. For backend, Composer is the de facto dependency manager.
Table of Contents
Composer as dependency manager
Conclusion
Installation of Composer
Why composer update instead of composer install ?
When to do composer install and when to do composer update ?
Importance of composer lock in git
A brief introduction of composer.json file
How to install packages using Composer in Laravel ?
require
require-dev
Why composer update ?
Why composer install ?
0 notes
decodewebin · 5 years ago
Link
0 notes
decodewebin · 6 years ago
Link
0 notes
decodewebin · 6 years ago
Link
Here is another interesting topic of guard in laravel we are going to cover in this post. As we all know user authentication can be achieved in jiffy, that is, run php artisan make:auth and you will get controllers, blade views all ready to launch with authentication.
But..but.. Here is the catch. Laravel provides default authentication on User model or users table, what if there are two types of users completely different to each other, for example application users and admins ?
One thing we can do is, make a column in users table with name as type and there we define type of user, 1 for admin and 0 for normal user. This method is completely wrong, do not do this ever. Period.
Keep normal users in user table and for admins create another table as admin. Laravel ships a default authentication guard called as web which is applied on User model. For instance go to config/auth.php
'defaults' => [        'guard' => 'web',        'passwords' => 'users',    ],
Table of Contents
What is a guard in laravel authentication?
Create middlewares for normal users and admin users routes
Register middlewares in Kernel.php
Apply middlewares on their respective routes in web.php
Conclusion
How to create a guard a in laravel ?
What is middleware in laravel ?
0 notes