Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,152,973 members, 7,817,865 topics. Date: Saturday, 04 May 2024 at 09:34 PM

Learn Laravel From Scratch... - Webmasters (2) - Nairaland

Nairaland Forum / Science/Technology / Webmasters / Learn Laravel From Scratch... (2188 Views)

***hire Us For A Responsive And Functional Website (code From Scratch)*** / Tutorial: How To Create An Attractive Blog With Blogger From Scratch In 1 Hour / ###get Your Website Coded From Scratch (professional Touch On Bet/lotto/p2p Etc) (2) (3) (4)

(1) (2) (Reply) (Go Down)

Re: Learn Laravel From Scratch... by abdeiz(m): 3:58am On Jan 11, 2019
I like how you add humor to your lessons, keep it up, we are following

preciousaang:
But this is very stupid way for me to introduce controller since I introduced it as a badass function of Laravel. Sorry for that. Let’s get into the fun stuff with controllers. Well remember the first route we created, where we returned a view, well we originally do that in a controller.
So let’s see how we can do that. But first let me create a folder in our views folder, you know, the folder where we keep our HTML files. Note that all files here must have the “.blade.php” extension.

So you know how I’m always calling them HTML files, well I lied. They are actually called templates.

So I’ll create a folder called frontend.
Re: Learn Laravel From Scratch... by abdeiz(m): 4:01am On Jan 11, 2019
Here we use the double curly braces to get a value....it this the equivalent to superglobal variables in native php? ie Get, Post and Session

preciousaang:
So let see some functionalities of controllers. We can pass data from controllers to views.
All we have to do in pass a second argument into the view() function. This argument should be an associative array in which the key is the name of the data and the value is the actual data being passed.
Re: Learn Laravel From Scratch... by preciousaang(m): 6:21am On Jan 11, 2019
abdeiz:
Here we use the double curly braces to get a value....it this the equivalent to superglobal variables in native php? ie Get, Post and Session

No. It's actually a syntax for the templating language of Laravel. If you like you can use <?PHP echo $name; ?>
instead. But that will suck the whole fun out of it. Because the double curly braces actually do a lot of things for you behind the scene. For example it helps you escape the strings.
Re: Learn Laravel From Scratch... by abdeiz(m): 7:21am On Jan 11, 2019
preciousaang:

No. It's actually a syntax for the templating language of Laravel. If you like you can use <?PHP echo $name; ?>
instead. But that will suck the whole fun out of it. Because the double curly braces actually do a lot of things for you behind the scene. For example it helps you escape the strings.


Ayt...got it...*thumbs up
Re: Learn Laravel From Scratch... by abdeiz(m): 10:22am On Jan 13, 2019
Hi..it just occurred to me, what kind of project are we going to build?

preciousaang:
Hello everyone who cares. Welcome to this thread on Laravel tutorial.

Re: Learn Laravel From Scratch... by preciousaang(m): 12:40pm On Jan 14, 2019
abdeiz:
Hi..it just occurred to me, what kind of project are we going to build?

If I'm being honest, I'm not sure. Reason being I'm not exactly a web designer per say. I'm a backend developer. So if we're going to to build a project. it won't exactly have the best frontend interface. But you can rest assured that it will touch everything I will teach you.
Re: Learn Laravel From Scratch... by abdeiz(m): 1:28pm On Jan 14, 2019
preciousaang:


If I'm being honest, I'm not sure. Reason being I'm not exactly a web designer per say. I'm a backend developer. So if we're going to to build a project. it won't exactly have the best frontend interface. But you can rest assured that it will touch everything I will teach you.

Don't worry about the front end, I can craft something for our project. #anxious4nextLecture
Re: Learn Laravel From Scratch... by preciousaang(m): 8:11pm On Jan 14, 2019
abdeiz:


Don't worry about the front end, I can craft something for our project. #anxious4nextLecture
Alright No Qualms
Re: Learn Laravel From Scratch... by preciousaang(m): 3:08pm On Jan 15, 2019
I'm sorry for not posting soon. You know now. When NEPA decide to be NEPA. So j haven't been able to use my system. Abeg don't think I'm unserious. I'll find a way to post soon enough. Up next. We will learn about sending more types of data from the controller to the view. And I'll also teach about the blade templating language.
Re: Learn Laravel From Scratch... by abdeiz(m): 4:16pm On Jan 15, 2019
preciousaang:
I'm sorry for not posting soon. You know now. When NEPA decide to be NEPA. So j haven't been able to use my system. Abeg don't think I'm unserious. I'll find a way to post soon enough. Up next. We will learn about sending more types of data from the controller to the view. And I'll also teach about the blade templating language.


Yes i understand so i kinda took the liberty of poking around on my own. Sha when we reach where i dont understand i would point it out.

Its so sad how guys wanna learn but the enabling environment isnt there.

1 Like

Re: Learn Laravel From Scratch... by preciousaang(m): 3:00am On Jan 16, 2019
We can also pass out other object types from the controller to the view, in this instance we’ll pass out an array. As you notice, I am putting the whole data we want to pass into the view into an associative array called “Context”.

Re: Learn Laravel From Scratch... by preciousaang(m): 3:02am On Jan 16, 2019
In PHP, we normally list arrays using the foreach statement. We do the same in Laravel, only a little differently. We write a “@” symbol, followed by our foreach statement. We end our statement with and endforeach.

Re: Learn Laravel From Scratch... by preciousaang(m): 3:21am On Jan 16, 2019
Since I may not have enough words to explain blade templating on my own before NEPA does their work again.
Please read the document in this link and ask questions where you're lost.

https://laravel.com/docs/5.7/blade
Re: Learn Laravel From Scratch... by abdeiz(m): 2:45pm On Jan 21, 2019
Hello? anyone here?


preciousaang hope you are doing well, just letting you know that we are still following this thread. Hope to see an update soon bro.

FYI the laravel docs are kinda complicated to read.
Re: Learn Laravel From Scratch... by preciousaang(m): 7:06pm On Jan 22, 2019
abdeiz:
Hello? anyone here?


preciousaang hope you are doing well, just letting you know that we are still following this thread. Hope to see an update soon bro.

FYI the laravel docs are kinda complicated to read.

Not my fault o. When NEPA say no nobody can say yes....

Don't worry update coming soon.

(1) (2) (Reply)

Exchange Voguepay With Perfectmoney Dollar Online Instantly[no Waiting] / I Will Create Best Admob Auto App To Make You 1000usd Monthly / Advanced Xml Portfolio Website

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 22
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.