How Do I Use Iterators

"Iterator" is a scary term, but it’s not so hard to understand. You already know that you can iterate (with foreach) over an array. But what about things which are not arrays? Maybe you’re dealing with a collection class, or a file reader, or a database query. How do we iterate over these sorts of things? Well, easily!

View the source for this lesson on GitHub.

Thanks so much to Jigal Sanders for the question. If the rest of you have any questions that could be answered in video-form, tweet your question and add the hash tag, #helpMeLaracasts.
Source: Laracasts

MySQL 101

You’ve only just begun learning the fundamentals of PHP, and already I’m throwing something else at you. Sorry (bows head in shame), that’s just how it is; there are lots of moving pieces to your typical web application. We must take some to review databases. This is how we "remember" information. Or, in other words, if a user creates a handful of todo items, how will we remember those todos for when they return to our site next week? Well, the answer is through a database.

As for MySQL GUIs, you might consider any of the following:

Sequel Pro (Mac only)
Querious (Mac only)
Source: Laracasts

Pagination and Channel Filtering

We’ll tackle two things in this lesson. First, we’ll clean our views up a bit and render the proper pagination links. Next, we’ll figure out how to sort all of the links, according to their category. This will allow for easy filtering.
Source: Laracasts

PhpStorm 2016.2 is released


My favorite IDE, PhpStorm, just released their second release of this year and it includes a lot of great new features. Some of the highlights include:

Better PHP Language Support: Improved type inference, strict type inspection for PHP 7, better parsing of PHP 7 and PHP 7.1, and improved getter and setter generation for PHP 7 (and higher).

New Editing Experience: Dynamic live template for smart completion of function parameters; values of class constants shown in completion lists; possibility to filter out static methods from completion list; smart type code completion; and various @throws improvements.

Code Quality Analysis: Reworked Unused imports inspection for unused namespaces, functions, and constants; Return type inspection; and Dynamic call to static method inspection.

Frameworks, Tools, and more: Template projects, better Joomla! support, and Xdebug On Demand for CLI PHP Scripts.

Check out the preview of the new features below or view their what’s new page for all the new features.

Source: Laravel News

Form Objects and Touching Timestamps

How should we handle the situation where a person attempts to submit a link that has been previously shared by somebody else? Rather than allowing or preventing duplicate links entirely, let’s instead touch the timestamps of the old submission. That way, it will jump back to the top of the page. In the process of implementing this, we’ll discuss and review exceptions and form objects.
Source: Laracasts

LN 21: Laracon Live Stream, Laravel 5.3 Collection Where Changes

Laravel News Podcast

In this episode, we discuss Laracon Live Streaming, the new advanced where for Collections, and a few new apps and packages.

You can listen from the podcast site, subscribe in iTunes or Google Play.

Show Links

Source: Laravel News

Flash Messaging and Modals

In the last video, we realized that some form of flash messaging will be needed. Let’s tackle that in this lesson. While Laravel offer session flashing out of the box, we’ll pull in a small little package to expedite the whole process. This will also make preparing modals much simpler.
Source: Laracasts

Josh – Laravel Admin Template with Crud builder (Sponsor) →


Josh admin template + front end + CRUD generator is a bootstrap based admin panel and frontend built for Laravel developers.

Using CRUD you can quickly generate model, controller, views optimized for Josh look and feel.

It includes 100+ components like form builder, charts, data tables, image upload/resizing, shopping cart UI, and advanced modals.

Also login, registration, user management, and groups management coded for Laravel using sentinel and is ready to use.

Some of the features include:

  • Support for laravel 5.1 and 5.2
  • Many laravel examples added
  • Built with bootstrap 3.3.6
  • 70+ admin pages included
  • 10+ frontend pages included
  • 404, 500 pages included
  • Authentication and authorization is ready to use
  • HTML, PHP and Laravel versions included
  • Drag and drop form builder
  • 50+ chart examples
  • Calendar UI
  • Tables: search, copy and export to pdf,csv
  • Mailbox UI
  • Gallery, image upload, image cropping UI
  • Shopping cart UI

If you are starting a new Laravel project, JOSH will save tons of your time and gives excellent UI for your project.

Itís being updated continuously so you can get many more features and the best part is all updates are free for forever. Check it out today.


Thanks to Josh for sponsoring Laravel News this week.

Source: Laravel News

Trusted Users and Approved Links

We initially decided that all submitted links should be approved; however, that’s not reflected anywhere on the site just yet. Let’s update our code, so that it only fetches approved links. Next, we’ll update the users table to add a new trusted column. This will indicate whether or not we should automatically approve submissions.
Source: Laracasts

1 19 20 21 22 23 26