NewStats: 3,263,810 , 8,181,471 topics. Date: Sunday, 08 June 2025 at 02:28 AM 4t2n1h

6n613r

DevLaive's Posts x565d

DevLaive's Posts

(1) (2) (of 2 pages)

DevLaive: 1:07pm On Jun 06
I am interested. I have sent you a mail sir
DevLaive: 2:14pm On Jun 05
To learn more, let's talk through a direct message.
DevLaive: 12:49pm On Jun 05
As you can see above, in simple , the () method will handle registration logic.

The () method will check if the details the entered are correct or not. If correct, the will be logged in, otherwise, the will be denied access.

The create_topic() method will handle the logic of creating a new topic and storing it using the associated Model.

The create_category() will handle creating and storing new forum categories.

The list_topics() method will handle fetching all existing topics created by s.

The show_single_post(identifier) method will handle fetching a single topic based on the identifier that has been ed to it.

That's it!
DevLaive: 12:46pm On Jun 05
Finally, let's talk about the required Controller files.

Well, we can use just one Controller file. But the controller will contain multiple methods (call them functions) and each function handles a particular/specific task such as displaying a form, showing a topic, etc.

For our case, let's call the Controller ForumController. Now, inside this controller class we can have the following methods:

1. ()
2.()
3. create_topic()
4. create_category()
5. list_topics()
6. show_single_topic(identifier)

The bodies of these 6 methods above will handle the logical aspect of our project. Let's explain each
DevLaive: 12:30pm On Jun 05
Now that we have seen the models that will be needed for our Forum project, what about the Views??

Well, we will need 6 different views. Here:

1. : This guy presents the registration form that the should fill in order to .

2. : This guys displays the form.

3. create-topic: This guy presents another form for a to create a new topic after they have logged in successfully.

4. list-topics: This one presents a nice list of all created topics in our forum.

5. create-category: This will help create new category/section.

6. show-single-topic: This will finally help us to view a single topic and read it's content.
DevLaive: 12:20pm On Jun 05
First, since people will be able to , that means we need to store their information somewhere. , our "somewhere" is called the database.

The first Model we will need is the model to store s of our forum.

The second model we will need is Category model to store categories/sections of our forum.

The third and final model we will need is, guess it! Yeah, you got it. We will need the Topic model.

So the three models are , Category and Topic.

Notice I didn't pluralize the model names. That's a convention in Laravel. Model names should be written in singular form.
DevLaive: 12:14pm On Jun 05
Now that we know what MVC stands for and what it is all about, let's picture how we can apply this knowledge at least in theory.

Let's say we want to build a forum like Nairaland. A basic version of it of course. 😊

In this situation, we need to be clear about what we want. So let's see.

1. We want s to
2. We want s to be able to
3. We want to have categories/sections
3. We want s to be able to create topics in a particular section/category
4. We want to store the topics that s created.
5. We want people to view the created topics by clicking on them.

Simple right? Let's see the Laravel Models that will be needed for this project as well as the Views as well as the Controllers we will be needing.

1 Like 1 Share

DevLaive: 12:01pm On Jun 05
Now, the C in MVC stands for Coffee β˜•! Ohh, sorry, it stands for Controller! 😊😊

Think of the Controller as the main engine of your web application. It handles the logic of what the should be shown anytime they make a request to a certain part of your project.

The Controller is just like a messenger that listens to his/her boss. When they messenger gets instructions from their boss, they act based on that instruction.

If the instruction is not clear, the messenger won't know what to do. But if the instruction is clear, the messenger does exactly what's required.

That's is how the Controller is. If a makes a request to view another 's profile, it's an instruction to your application. In this case, it is the responsibility of your Controller to process that request and if it is successful, present the result to the screen!

That's basically it for MVC!
DevLaive: 11:53am On Jun 05
Okay! The V in MVC doesn't stand for vehicle! Nope! It stands for View. Yes, View!!!

Every web application needs to present data to visitors or s (let's use s πŸ˜‰). That data could be static data or dynamic data that is fetched from the database (handled by the Model).

See, if your application doesn't present data, it is useless. Nobody wants to see blanck pages.

So, your View shows your s something. It could be your products, your customers, your customer reviews, your stories or just anything.

So anytime you want to present something, just feel free to create a View and show your data there!

Easy right? But how about the C in MVC? What does it stand for??
DevLaive: 11:48am On Jun 05
MVC stands for Model, View and Controller. Let's explain each one.

Model : This guy handles everything related to data storage and retrieval. Yes! If you want to build an awesome project that stores information somewhere (somewhere == database), then you simply need to engage the services of a model. For example, if I want to create an e-commerce application, then I will need to store my products somewhere. I will also need to store my customers somewhere. How about their reviews of my projects? Yes, I can store that too.

It is the model that helps me do that!

But what does the V stand for in MVC?

Lets see that one next!
DevLaive: 11:43am On Jun 05
Next up, let's talk about the basic architecture that Laravel uses.

Laravel is built using the MVC architecture. Don't worry, it's not difficult at all. Let me explain it. 😊😊

First, by architecture, we don't mean it was drawn by an architect using the pencil and white paper. Nope! By MVC architecture, we mean it's just a style or pattern that the framework follows. So, when building your applications on that framework, it must follow that pattern.

But what is MVC??
DevLaive: 11:39am On Jun 05
First things first, Laravel is just a PHP framework that abstracts (or removes) the difficulty/complexity involved in using plain (vanilla) PHP when building web applications.

For example, if using a normal saw blade to cut through wood makes you sweat, using a machine saw will be easier. So in this case, the hand saw is plain PHP, while the machine/mechanical saw is a PHP framework such as Laravel.

When you know what you are doing, using a framework like Laravel in your project is like cutting through butter with a hot knife.πŸ˜‰πŸ˜‰ It cuts through easily.

If that's clear let's move on.
DevLaive: 11:32am On Jun 05
I've noticed so many people want to learn how to build web applications from scratch. But they end up in boot camps that only teach JavaScript/NodeJS.

While this JavaScript and NodeJS are cool and considered modern tools for building web applications, it's worth mentioning that PHP has seen a lot of improvements lately.

In fact, PHP powers a significant percentage of websites or web applications online today. One of such typical examples is WordPress, a very powerful content management system you can use to build just about any kind of website.

Laravel, a PHP framework is very powerful framework that makes building web applications a piece of cake if only you understand the basics of HTML, PHP and maybe some database management tools like MYSQL.

In this thread, I will try to introduce Laravel to you in very simple . Once you grasp the basics of what I'll say here, getting started with actually using Laravel will be easier than you thought. πŸ˜‰

Let's delve in!! πŸ™ŒπŸ™Œ

DevLaive: 10:36pm On Jun 03
stuffs2002:



How did your late uncle graduate with all these evidence of examination malpractice.
Writing on your question paper during an examination is enough evidence of examination malpractice
Well, I wasn't there...
Unfortunately.
DevLaive: 8:24am On Jun 03
QuinQ:


What happened to your uncle?
We lost him in year 2006 after a prolonged illness. Just recently, I stumbled upon some of his notes and other materials and took this one and others to my archives.

15 Likes

DevLaive: 4:46pm On Jun 02
I stumbled upon my late Uncle's University of Calabar second semester past questions in the Department of Educational Foundations and istration. That's over 37 years ago.

What's your take? Are the standards still the same today?

10 Likes 2 Shares

DevLaive: 5:58am On Jun 02
Hello, I am interested. I have sent you a DM
DevLaive: 9:49pm On May 31
Infotubia9ja:
Nice job bros I like it.

Just a quick question, do you do both end and back end development and mentainace and updates because that will be awsome
Yeah, I build full-stack web applications. And this is an example. I also handle maintenance too.

1 Like

DevLaive: 4:51pm On May 31
The client confessed to have hired 3 different developers previously and yet they couldn't deliver the project.

When I took it up was when I understood why the three previous guys couldn't handle it. I had to introduce in my own logic to make things work.

Today, it's about 98% complete. Though it's not yet hosted on a live server.

I used Laravel, TailwindCSS, Livewire and AlpineJs.

Please hire me for your next gig. πŸ˜‰πŸ˜‰

DevLaive: 5:49am On May 28
ovanda:
Hi, this is Victor,a full stack developer.
Welcome Victor
DevLaive: 5:49am On May 28
Greydebz:
I am Debby a Ui/Ux designer and a product manager. it’s nice meeting you all
Welcome Debby
DevLaive: 5:48am On May 28
Murpheus009:
Hi, new here
Still finding my way around
I am a React Developer, tech stack includes Figma
Would love it if we connected
Nice meeting you here
DevLaive: 1:05pm On May 25
It still doesn't hurt to follow the device's manual. The manufacturer knows better

10 Likes

DevLaive: 12:06pm On May 22
MindHacker9009:
If a client says they want an e-commerce website and, when asked about their budget, they respond with ₦10,000, how would you respond to them? Is it:
1. That's fine.
2. You need to increase your budget.

Will it not be better to just give the client a quote based on the how long it will take you for the coding X your rate per hour, plus hosting and cost.
Thank you for this! It's better this way. It's my time and energy for goodness' sake.

1 Like 1 Share

DevLaive: 11:35pm On May 21
Nipeks:


I pointed out that the client might not fully grasp certain elements of the project. I encounter a diverse range of clients, whether knowledgeable or not.

It's important to consider the client's budget, as it will inevitably arise. I'm not even saying it's always a must to ask but WHY NOT?
A
sk yourself what is more logical: understanding the client's budget upfront and tailoring your approach accordingly, or making assumptions and providing a less accurate estimate or do you just enjoy disagreeing.

Your initial post says asking client for budget is unprofessional and that is a false statement. You can say you don't like it but professionals often check in with clients about their budget, maybe not in the "How much do you want to pay?" tone but it's a usual part of the conversation.

Well, you're entitled to your opinion. But I'd rather present a range of prices to give my potential clients options. I don't have to tailor down my services based on a client's budget. It won't speak well of me if it turns out poorly. Not because of my incompetence, but because of client's budget.
DevLaive: 1:27pm On May 21
You're assuming your potential client will be technically inclined to know all these?? If they have the technical knowledge, they probably won't you. It's your responsibility to break down everything and give them price options.
Nipeks:



For instance, when a client requests the development of an application similar to WhatsApp, the allocated budget will significantly influence my approach.

A client with a limited budget may lack understanding on aspects such as end-to-end encryption, which might seem like a minor feature to them but fundamentally alters the entire architecture of the application.
Consider the video and voice calling functionality, a client with a restricted budget might be open to utilizing a third-party API like Twilio or Agora, which may be cost-effective in the short term.
In contrast, a client with a larger budget may prefer to avoid being tied to a third-party. The implementation of a custom TURN media relay server using coturn and the establishment of Mesh WebRTC Architectures for calls will considerably affect the overall cost.

Should I only accept projects from high budget clients?
D
oes the exclusion of unneeded features or the use of third-party APIs equate to a poorly done job?
I don't think so.
DevLaive: 12:53pm On May 21
MindHacker9009:
Here is where costing in cost ing is needed. It should be the programmer that should give the client a quote. This can best be done by how long it will take x your rate per hour plus the cost of deployment and .
Exactly... Give the client options based on what you know. Not to ask a client their budget. It doesn't make any sense at all.

1 Like

DevLaive: 5:11pm On May 20
Nipeks:
It's not that simple, the prices are never fixed.
A service can have a pricing structure that varies from 300K to 3M.

Clients often struggle to articulate their precise requirements, leading them to request additional features even after the contract has been finalized.
Understanding their budget will enable you to provide a suitable quotation, especially if your pricing is based on the number of hours you anticipate spending on the project.

Not entirely true. If a client gives you a specification of what they want in the project, the onus lies on you to give a price range. If they accept to pay after negotiating, then you've won the project. But asking for a budget and then delivering the project based on their budget doesn't speak well of you. People will see the project and judge it based on what they see.

If a project is poorly done due to the client's budget, people will conclude that you as the developer lack the skills and aren't professional. They won't ask the budget.

I have politely declined several projects not because I didn't want the money. But because the money is not worth the energy I'll put in to make the work perfect. I can't just deliver a project for the money of it. I love doing good things.
DevLaive: 8:00pm On May 16
Wb21:


There is this idea social media has given, that asking a clients budget automatically means the client will tell you an amount that is way higher than the original price.

But from my experience as a fullstack developer when i ask this question the immediate response is "how much do you charge for the website"

Its kind of like a trick that no one ever falls for and if anyone falls for it the likeliness of them budgetting more than the worth is almost 0

Even if i go to buy something today which in most cases i already know the price range from what others have informed me, if anyone asks me my budget

1. i will definately not tell them because im not stupid instead i will call a ridiculously low price for you.
2. It will show me that this person is not trustworthy because he is trying to trick me.
3. This person is still new if not he would have come to a conclusion that this doesnt work.

Rather tell the person your price even if he planned to spend more, the fact you saved him that cost the customer will come back or even refer you to a friend.

Business is about building customers not cashing out instantly
Thank you. You really nailed more on my points above. It's just sad how new and inexperienced developers feel making money entails outsmarting potential clients.

1 Like

DevLaive: 7:06pm On May 15
I've seen this trend among developers/designers and almost everyone in the tech space. When approached with a gig/job, instead of mentioning what they will charge for it, they end up asking the client questions like: "What is your budget?", "How much do you want to pay?", etc.

In my opinion, questions like these mostly come from non-professionals. A professional who knows their worth, values their time, energy and resources -- will be straight to mention what they want to charge for a project.

You know better for goodness's sake. You're in the know of what the project will cost because you know what is involved. It's your skills that will be put to use!

It's better you mention your price and then let the client negotiate their way through. The question: "what's your budget" presents you as being open to any offer. Only hungry and desperate developers do that.

Stop it and be professional.

1 Like 1 Share

(1) (2) (of 2 pages)

(Go Up)

Sections: How To . 100
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or s on Nairaland.