You are here

Feed aggregator

Many to Many Polymorphic Relations

Laracasts - Wed, 09/19/2018 - 18:07
We've finally made it to the most intimidating of Eloquent relationships: many to many polymorphic. Don't worry; it's far simpler to understand than you might initially think. In this lesson, we'll construct a standard many-to-many relationship: a user can "like" a post. Then, we'll throw a wrench into the mix. What if a user can also "like" a comment? How might we restructure our existing structure to allow for this?
Categories: Laravel

Smaller Additions

Laracasts - Mon, 09/17/2018 - 20:48
Let's review a few smaller - yet still important - updates to Laravel 5.7. You'll learn about a new base directory for your JavaScript and CSS assets, callable action url generation, and guest authorizations.
Categories: Laravel

Improved Artisan Command Testing

Laracasts - Fri, 09/14/2018 - 16:42
Laravel 5.7 ships with improved support for testing your Artisan commands. You can now leverage the helpful expectsQuestion() and expectsOutput() methods to ensure that your commands function exactly as expected.
Categories: Laravel

PHP 5.6.38 is available

PHP Announcements - Thu, 09/13/2018 - 14:07
Categories: PHP

PHP 7.0.32 is available

PHP Announcements - Thu, 09/13/2018 - 09:30
Categories: PHP

PHP 7.2.10 Released

PHP Announcements - Thu, 09/13/2018 - 06:10
Categories: PHP

Count Up

Laracasts - Wed, 09/12/2018 - 22:12
Let's review another real-life example. We need to construct a Vue component that counts from 0 to a given number very quickly. However, this counting should not begin until the element is within the user's viewport. View the source code for this episode on GitHub.
Categories: Laravel

Extract and Generalize: Infinite Scrolling Refactor

Laracasts - Mon, 09/10/2018 - 11:56
If you notice that a segment of logic in your component might be useful and necessary elsewhere in your project, this is likely an indication that you should extract the relevant code into its own component, generalize the specifics, and then emit events to handle side effects on a case-by-case basis.
Categories: Laravel

Dump Server

Laracasts - Fri, 09/07/2018 - 08:58
Laravel 5.7 includes an incredibly useful new php artisan dump-server command. Written by Marcel Pociot, this command provides a wrapper around Symfony's VarDumper component. While running, each time you dump data as part of your response (examples: dump($users) or dd('hello world')), the output will be swallowed up and printed in the console.
Categories: Laravel

Email Verification

Laracasts - Tue, 09/04/2018 - 16:07
First up, we have email verification support out of the box in Laravel 5.7. It's as simple as adding implements MustVerifyEmail to your User class. Seriously.
Categories: Laravel

Polymorphic Relations

Laracasts - Mon, 09/03/2018 - 16:48
We've made it to the scariest of Eloquent relations: polymorphic. Don't worry! As with most things, the word is scarier than the technique. A polymorphic relationship allows a model to belong to any number of models on a single association. Let's demonstrate this with a practical example.
Categories: Laravel


Drupal News - Mon, 09/03/2018 - 12:46
Completed Drupal site or project URL: business registration in North Rhine-Westphalia

Since the 1st of July 2018, the new "Gewerbe-Service-Portal.NRW" has been providing citizen-friendly eGovernment by allowing company founders in the German federal state North Rhine-Westphalia (NRW) to electronically register a business from home. The implementation was carried out by publicplan GmbH on behalf of d-NRW AöR. With the aid of a clearly arranged online form, commercial registration can be transmitted to the responsible public authorities with just a few clicks. Furthermore, an integrated chatbot helps the user with questions.

Service portal

In addition to the business registration, the portal offers information to the topic “foundation of an enterprise”. Furthermore, users have access to all service providers of the "Einheitliche Ansprechpartner NRW" (EA NRW). The online service supports specialised staff in taking up a service occupation or professional authentification. The search for a competent trading supervision department can also occur via the “Verwaltungssuchmaschine” (VSM) that was developed by d-NRW and publicplan GmbH on behalf of the “Ministerium für Wirtschaft, Innovation, Digitalisierung und Energie NRW” (MWIDE). The VSM is a search engine specialized for information about the public sector.

Business registration together with Chatbot “Guido“

"Guido" is a smart dialogue assistant for questions. He ensures automatic retrievability of information in plain language and is also able to identify each business type by a key. The chatbot determines every suitable business type by approaching the key through request of information. After successful determination, it is automatically transmitted to the form. Therefore, “Guido” saves the complicated search for many similar types of business. The director of publicplan GmbH, Dr. Christian Knebel says: "Thanks to our numerous eGovernment projects, we can draw on a wealth of experience in order to implement such a comprehensive portal. publicplan's integrated chatbot technology is the perfect complement to a contemporary citizen service."

Categories: Drupal

Has Many Through

Laracasts - Thu, 08/30/2018 - 21:14
While not nearly as common, the hasManyThrough relationship, when necessary, can prove to be incredibly useful. This relationship type allows you to perform queries across long-distance relationships.
Categories: Laravel

Many to Many

Laracasts - Mon, 08/27/2018 - 15:55
Many to many relationships are a bit more confusing to understand. Let's break it down by reviewing the common "posts" and "tags" relationship. A one-to-one or one-to-many relationship isn't quite right here. A post will never own a tag. It can be associated with one, sure, but it doesn't own the tag. The same is true in reverse. When we encounter situations such as this, a "many-to-many" relationship is exactly what we need.
Categories: Laravel

One to Many

Laracasts - Thu, 08/23/2018 - 21:17
Now that we have "one-to-one" relationships locked and loaded, let's move on to our next Eloquent relationship: "one-to-many." What might be an example of something a user would have many of? What about posts, or projects, or tasks? You'll reach for this relationship constantly in your daily workflow.
Categories: Laravel

That's a Wrap

Laracasts - Tue, 08/21/2018 - 14:59
Take a moment to think how much we've covered in this series. These techniques can be applied to any new component or feature that you're working on. I hope you've found a technique or two to throw into your toolbelt. Thanks for coming along!
Categories: Laravel

One to One

Laracasts - Mon, 08/20/2018 - 16:13
First up, we have "one to one" relationships. This is an easy one to picture in your head. What is one thing that a user might be associated with? What about a profile, or an address, or an avatar?
Categories: Laravel

Custom Collection Sorting With Lookup Tables

Laracasts - Fri, 08/17/2018 - 10:37
I'd like to sort all achievements from beginner to advanced. It sounds like we'll need custom sorting logic. Let's tackle that in this lesson by building a lookup table to translate each skill level to a respective number. Finally, we'll finish the lesson by discussing object responsibility and where logic like this should live.
Categories: Laravel

Drupal Core - 3rd-party libraries -SA-CORE-2018-005

Drupal Security Advisories - Wed, 08/01/2018 - 14:54
  • Advisory ID: SA-CORE-2018-005
  • Project: Drupal core
  • Version: 8.x
  • CVE: CVE-2018-14773
  • Date: 2018-August-01

The Drupal project uses the Symfony library. The Symfony library has released a security update that impacts Drupal. Refer to the Symfony security advisory for the issue.

The same vulnerability also exists in the Zend Feed and Diactoros libraries included in Drupal core; however, Drupal core does not use the vulnerable functionality. If your site or module uses Zend Feed or Diactoros directly, read the Zend Framework security advisory and update or patch as needed.

The Drupal Security Team would like to to thank the Symfony and Zend Security teams for their collaboration on this issue.

Versions affected

8.x versions before 8.5.6.


Upgrade to Drupal 8.5.6.

Versions of Drupal 8 prior to 8.5.x are end-of-life and do not receive security coverage.

Reported By Contact and More Information

The Drupal security team can be reached at security at or via the contact form at

Learn more about the Drupal Security team and their policies, writing secure code for Drupal, and securing your site.

Follow the Drupal Security Team on Twitter at

Drupal version: Drupal 8.x
Categories: Drupal

PHP 5.6.37 is available

PHP Announcements - Fri, 07/20/2018 - 01:39
Categories: PHP


Subscribe to ZenPHP aggregator