Learn Python, Php, NodeJs, Django, Laravel and RESTApi

fetch-data-with-model-relationship-in-laravel-7

Fetch data with model relationship in laravel 7

Hello World, Welcome to projectsplaza.com. Today we will discuss how we can fetch data with the model relationship in laravel 7. In this tutorial, we will create an example of hasMany and belongsTo model relationship.


hasMany Relationship

Suppose you have a blog website and you want to fetch comments of a specific post on the post detail page. In this scenario, you should have two models, Post and Comment respectively. We know that a single post has many comments so we will define the hasMany relationship in the post model.

Read More »Fetch data with model relationship in laravel 7

number-guessing-game-in-python

Python Example 1 – Number guessing game with python

Hello World, Welcome to projectsplaza.com. Today we will discuss how to create a number guessing game with python. This tutorial is for python beginner. Python has three different numeric types: int, float, and complex. Most of the time, it is enough to know about int(for the whole number) and float(for fraction number). For this game, we will do the following steps

  • Write a function guess_number that takes no arguments.
  • When we run this function it will automatically choose the number between 0-50.
  • Ask the user to guess what number has been chosen.
  • Every time user guess a number, we will indicate the following:
    • Too High
    • Too Low
    • Just Right
  • If the user guesses the correct number then the program exit, otherwise the user is asked to try again.
  • Programm will exist only if the user guesses the correct number.

Read More »Python Example 1 – Number guessing game with python

Create your first application with react native

Hello World, Welcome to projectsplaza.com. Today I am going to create a hello world app with react native. I will create this react native app with expo. This is a very simple application. Our main goal of this tutorial is to install react native on the window system and create our first application. I have defined the following steps to create a hello world app with react native.

Read More »Create your first application with react native

How to save form data in database in django

Hello World, Welcome to projectsplaza.com. Today we will learn how to save form data in the database in django. We will use the SQL database. I am assuming that you have installed Django in your system, If not then please refer to this tutorial. We will create a simple contact form in which the user will fill his basic information like full name, email, and message.
I have divided this tutorial into the following parts.

  • Create a contact model
  • Create contact form template
  • Submit form and save data in the database

Read More »How to save form data in database in django

How to create website without coding knowledge

Hello World, Today I am going to create a website without coding knowledge. You just need basic knowledge of internet browsing. In this tutorial, we will create a beautiful blog website with WordPress without coding experience. I have divided this tutorial into three parts.

  • Introduction of WordPress
  • How to download and install WordPress.
  • Create and run the website

Read More »How to create website without coding knowledge

how-to-send-email-in-laravel-with-mailtrap

How to send email with attachment in laravel 7 with Mailtrap

Hello World, Welcome to projectsplaza.com. Today I am going to show you how to send email with attachment in laravel with Mailtrap. This is a very easy and simple tutorial. In this tutorial, I will send a simple email with attachment from my controller function. I have divided this tutorial into the following parts.

  • Setup Mailtrap account
  • Connect Mailtrap with laravel
  • Email configuration in laravel
  • Send email with attachment from the controller

Read More »How to send email with attachment in laravel 7 with Mailtrap

how-to-send-email-in-laravel-with-mailtrap

How to send email in laravel 7 with Mailtrap

Hello World, Welcome to projectsplaza.com. Today I am going to show you how to send email in laravel with Mailtrap. This is a very easy and simple tutorial. In this tutorial, I will send a simple email from my controller function. I have divided this tutorial into the following parts.

  • Setup Mailtrap account
  • Connect Mailtrap with laravel
  • Email configuration in laravel
  • Send email from the controller

Read More »How to send email in laravel 7 with Mailtrap