Why I let my readers download my books absolutely ‘FREE’

Featured

Tags

, , , , , , , , , ,

People may doubt whether my motives for letting readers download my books absolutely free are altruistic-you may doubt that behind this big-hearted decision I probably hanker for publicity.

You are always welcome whatever way you perceive me. Good, bad, or ugly.

The true motivation stems from one single principle-knowledge should be free and remain accessible to all. Besides that, I believe only true knowledge can save us from this ubiquitous and omnipresent poverty.

So through the Leanpub platform, you may either download my books absolutely free or you may pay any amount you wish. The choice is yours.

I am a full-time writer, so I write books to put bread on my table. If you have money, pay any amount you want to, it starts at 0.99 Dollar; however, if you have no money, don’t worry, download the books absolutely free. As long as Leanpub allows this, it’s fine. If they stop that, I will start it right from here.

Now, I plan every book in a way so that it relates to a series of video stream where I explain the concepts audiovisually.

I would request you to subscribe to my YouTube channel and share it with your friends for one single reason. It indirectly helps me going this way-my own “FREE” way.

YouTube channel for good web programming practices

Leanpub platform for FREE books

For more videos

Happy reading. Happy watching. Happy coding.

Advertisements

Learn PHP 7 a very hard way!

Tags

, ,

Sometimes you need to give yourself more time to learn something better. PHP 7 is no exception. Take your time. Watch the video. If you like, you may subscribe, as many more such staff are on the way.

Many to Many relationships in Laravel 5.7

Tags

, , , , ,

In this video, I have shown how Laravel many to many relationships work.

Usually many-to-many eloquent relationships are not as simple as one-to-one or one-to-many relationships. It is a little bit complicated and needs a pivot table between two tables that have many-to-many relationships among them.

Think about two tables – Article and Tag. One article may have many tags and on the other hand, one tag may belong to many articles.

To define that relationship, you need a pivot table like ‘article_tag’. The naming of this pivot table is tricky. It should be alphabetically ordered; it means, A should come before B. Here it happens the same way.

This and all other issues related to the many-to-many relationship has been explained in this video. Please remember, this is my Youtube channel for teaching PHP, Laravel, Python and Ethical Hacking. If you enjoy, don’t forget to subscribe and share the videos with your fellow developers.

namespace App;

use Illuminate\Database\Eloquent\Model;

class Article extends Model
{
/**
* The roles that belong to the user.
*/
public function tags()
{
return $this->belongsToMany('App\Tag');
}
}

Once the relationship is defined, you may access the article’s tags using the ‘tags’ dynamic property:

$article = App\Article::find(1);

foreach ($article->tags as $tag) {
echo $tag->name;
}

The Inverse Of The Relationship is also true.

namespace App;

use Illuminate\Database\Eloquent\Model;

class Tag extends Model
{
/**
* The users that belong to the role.
*/
public function articles()
{
return $this->belongsToMany('App\Article');
}
}

Method Injection and Separation of Concerns in Laravel 5.7

Tags

, , , , , , , ,

We want to make our Laravel Application loosely coupled. How we can do that?
Here in this video, the major concept that jas made Laravel one of the greatest PHP framework has been explained.

https://leanpub.com/u/sanjibsinha

How the Polymorphic relationship in Laravel 5.7 works

Tags

, , , , , ,

The Eloquent relationship in Laravel 5.7 has one distinct guest – Polymorphic relations. This guest is different from the other model relations defined by default in the Laravel applications.
in Greek, the word Poly means many, and the word Morph means Forms. So, as a whole, it appears to be a special relationship, in Laravel, that serves to many database tables at the same time.
Watch this video to have a proper understanding and if possible buy the book where it has been described in detail with examples.
The links are given below.

https://leanpub.com/laravel5learneasy

Top ten most important commands in Laravel 5.7

Tags

, , , , , ,

https://leanpub.com/laravel5learneasy

What are the top ten most important commands in Laravel 5.7? What are they? What they do? Explained in great detail. Here is the list. It is shown in my youtube channel. If you like it, please share it and subscribe. Happy coding Laravel.

One to many relation in Laravel 5.7

Tags

, , , , , ,

Why I let readers download my books absolutely FREE
People may doubt whether my motives for letting readers download my books absolutely free are altruistic-you may doubt that behind this big-hearted decision I probably hanker for publicity. You are always welcome whatever way you perceive me. Good, bad, or ugly. The true motivation stems from one single principle-knowledge should be free and remain accessible to all. Besides that, I believe only true knowledge can save us from this ubiquitous and omnipresent poverty. So through the Leanpub platform, you may either download my books absolutely free or you may pay any amount you wish. The choice is yours. I am a full-time writer, so I write books to put bread on my table. If you have money, pay any amount you want to, it starts at 0.99 Dollar; however, if you have no money, don’t worry, download the books absolutely free. As long as Leanpub allows this, it’s fine. If they stop that, I will start it right from here. Now, I plan every book in a way so that it relates to a series of video stream where I explain the concepts audiovisually. I would request you to subscribe to my YouTube channel and share it with your friends for one single reason. It indirectly helps me going this way-my own “FREE” way. YouTube channel for good web programming practices Leanpub platform for FREE books For more videos Happy reading. Happy watching. Happy coding.

https://leanpub.com/laravel5learneasy

A “one-to-many” relationship is used to define relationships where a single model, here the ‘User’, can own many other models. For example, a user may have many number of articles.

To get the function right way, we should define one-to-many relationships by placing a method on the corresponding model, here User:

namespace App; use Illuminate\Database\Eloquent\Model; class User extends Model { /** * Get the comments for the blog post. */ public function articles() { return $this->hasMany('App\Comment'); } }

In this case, Eloquent will automatically determine the proper foreign key column on the ‘Article’ model. For this example, Eloquent will assume the foreign key on the ‘Article’ model is ‘user_id’.

Now you can access the collection of articles by accessing the ‘articles’ property.

This relationship, along with other model relations has been explained in my youtuve channel. Please subscribe and if you buy the book from Leanpub (The link given above), you could consult them together.

Happy watching and reading.