Step 7: Associative Arrays

We’ve learned about basic arrays, but you may also creative associative arrays when necessary. The only difference is that each value within the array is associated with a key. Let me show you.

Homework: Create an associative array for a task. This array should include such details as the title of the task, its due date, who it’s assigned to, and whether it has been completed.
Source: Laracasts

Laracon US Live Stream

Laracon Live Stream

For the first time ever, Laracon US is offering a live stream plus early access videos.

When you purchase access on the day of the conference you will get an email link to access the stream and be able to watch all the talks except for the one by Ryan Singer.

Please note that in the event of technical difficulties or bandwidth issues, you will still have exclusive access to download the talk videos within 24 hours. Since proceeds from these sales will go to support the bandwidth for hosting the early access videos, they will not be processing refunds for issues with the live streaming.

We still plan on bringing the live blog here on Laravel News, but of course, video and audio is always nicer.

Source: Laravel News

Code My Views →


Code My Views is your on-demand development team. Offering services to provide a clean front-end so you can focus on what you enjoy, building the back-end.

The process is simple, send them your designs and within an hour they will give you a quote with a guaranteed delivery date. After that, their team will hand code the HTML and CSS (or SASS, SCSS, LESS) using the latest web standards.

Have no time to code? They also offer full MVP builds using Laravel and Vue.js. Take your idea to market by partnering with the talented Code My Views team.


Thanks to Code My Views for sponsoring Laravel News this week.

Source: Laravel News

October CMS releases their first stable version


October CMS has announced their first stable version:

Today is a long-awaited date for all of us, October has finally reached a stable release! This version is based on the foundation framework Laravel 5.1 LTS (Long Term Support). Over the past two and a half years October has become a go-to platform for many developers and clients. It has been installed more than 100 thousand times, there are thousands of active users and these numbers grow steadily every day.

To go along with the new release they have redesigned the site and made changes to their support area. If you are new to October here is a crash course video on how it works:

Congrats to the October team for shipping their first stable release!

Source: Laravel News

How Do I Distribute an NPM Package Written With ES2015

Today’s question is locked on the Node world. Imagine that you’re building an NPM package, but are hoping to use the latest and greatest that ES2015 has to offer. Is it possible to use all these modern features, while ultimately distributing a compiled version to all users? Of course! I’ll show you how.
Source: Laracasts

Canvas – A new minimal blogging app


Canvas is a new minimal blogging app by Todd Austin built on Laravel. It features writing in markdown with the Summernote WYSIWYG, a media uploader, post tags, and post scheduling. It is designed to be a standalone blogging app not installed into an existing Laravel app, but it looks a great way to start your own blog and then build off the existing features.

The installation is really straightforward, especially if you are comfortable with Laravel. Using Composer all that is required is running:

composer create-project austintoddj/canvas

Then generate your application key:

php artisan key:generate

Next, open the UserTableSeeder.php file and set your login credentials, and finally run the install:

php artisan migrate --seed

After that, you are ready to start customizing the tags and begin writing your first blog post.

For my first look at Canvas, I’m impressed with the appearance of the admin. The only negatives I experienced was with the new post screen because adding a placeholder image is not intuitive. I expected the ability to select existing uploaded images or to upload a new one directly. Instead, it is just an input text where you have to enter the file name manually. The second minor thing is the date selection is not a calendar and expects it to be entered in this format, YYYY/MM/DD HH:MM:SS. I’d love to see that support strtotime or something a little more friendly.

Overall Canvas seems to be a great way of quickly creating a blog and a great starting point. For more information see the official site and Github project.

Source: Laravel News

Step 6: Understanding Arrays

Let’s learn about a new construct: arrays. Think of them as primitive collections of related data. Maybe you have an array of names, or animals, or practically anything. Even better, we can filter through this data and act upon it with ease.

Step 6 Homework: Create an array of any five animals, and then loop over them with foreach, and display each one within a list item.
Source: Laracasts

Step 5: Separate PHP Logic From Presentation

We’ll touch on a slightly higher level topic in this episode, but only lightly. If you stick with it long enough, you’ll begin to hear the phrase "separation of concerns." At our current skill level, this means we should give consideration to the fact that, at the moment, our PHP logic and HTML presentation are a bit too intertwined. Perhaps we can separate these concerns.

Step 5 Homework: Play around with creating a new file, preparing a few variables, and then loading a separate "view" file to present the HTML.
Source: Laracasts

Step 4: PHP and HTML

PHP is a language built for the web. As such, it mixes with regular HTML beautifully. Let’s learn how that all works in this episode. You’ll review embedding PHP in HTML, calling your first function, and fetching URL parameters.

Step 4 Homework: Echo a sentence onto the page, while fetching a URL parameters from the address bar.
Source: Laracasts

Step 3: Variables

Now that you’re ready to begin coding, let’s start at the top. What exactly is a variable, and why would ever use one?

Step 3 Homework: Create a variable, and figure out how to echo it onto the screen or page.
Source: Laracasts

1 19 20 21 22 23 25