Skip to content
  • android
  • Flutter
  • Kotlin
  • Firebase
  • Laravel

Droidmonk

Learn Android with Java and Kotlin
 
  • android
  • Flutter
  • Kotlin
  • Firebase
  • Laravel
Laravel

Models: Retrieving the seller’s information

Intro: Take a look at the product details page, we need the name, the email, and the phone number of the seller to display here. Those data are there on the users table. And in the products table, for each product, we have the user id of the user who …

Continue reading"Models: Retrieving the seller’s information"
Laravel

Authentication: Collect additional data during registration.

Intro: So we have realized that to complete the product details page we have to get the name, phone number, and email of the seller. We are already storing the user id of the seller while inserting a product to the products table, using this we can fetch the user’s …

Continue reading"Authentication: Collect additional data during registration."
Laravel

The Controllers: Retrieving a particular item from the database

Intro: The home page of our site is displaying the list of products from the database now, but the details page is still showing the static data. Now we shall start displaying actual data from the database here, but we won’t be able to complete this in this video itself… …

Continue reading"The Controllers: Retrieving a particular item from the database"
Laravel

The Controllers: Retrieving the list of products

Intro: Things are getting exciting, we have added products to our database, now it’s time to retrieve and display those products on the website. I have added a few more products to the database to have something to display, you can do the same too. Almost all the images of …

Continue reading"The Controllers: Retrieving the list of products"
Laravel

The Middlewares: Restrict access to the ‘sell a product’ page

In this video, I shall introduce you to the concept of middlewares in Laravel. But why?….because we have to restrict an unauthenticated user from accessing the post ad page. So whenever a user clicks on the sell button from the menu, before even returning the view for the sell page …

Continue reading"The Middlewares: Restrict access to the ‘sell a product’ page"
Laravel

The Controllers: Storing the data on the database

We have validated our form, uploaded the product image now it’s time to save the products information on the database. To interact with the database table products we shall use our model Product. So let’s get started. Two main points of focus for this video are- Using a model to …

Continue reading"The Controllers: Storing the data on the database"
Laravel

The Controllers: Image Upload

After validation of the user inputs, we are sure that we have all the data we need to create a new entry in the products table. Well, not exactly! Take a look at the structure of the products table and you’ll find the column named image_url, we shall store the …

Continue reading"The Controllers: Image Upload"
Laravel

The Controllers: Form validation

As we have created the table for storing the information of the products on our database, and also created the model to interact with this table now we have to create the controller to handle the request of adding the product information to the database. To add a product to …

Continue reading"The Controllers: Form validation"
Laravel

The Migrations: Add a product to the database

We have created the view for the products list, but it displays static content; we have created the view for the details of the product, but it too displays some dummy content as we have not added any product to the database. We have created the form to post an …

Continue reading"The Migrations: Add a product to the database"
Laravel

The Views: Create a form for posting an ad for a product

Intro: We shall allow the user to post an ad for a product that he or she wants to sell. In this lesson, we shall create a form to add a title of the product, a short description, a long description, the product price, and an image. Once the user …

Continue reading"The Views: Create a form for posting an ad for a product"

Posts navigation

1 2 3 4 5




Recent Posts

  • Middleware to verify ownership
  • Password reset
  • Email Verification
  • Delete a product ad
  • Edit a product ad

Categories

  • android
  • Basics
  • Firebase
  • Flutter
  • jetpack
  • Kotlin
  • Laravel
  • Login
  • Uncategorized
Back to Top
©droidmonk.com
Powered by Fluida & WordPress.