Interactive Make Command

The Interactive Make Command is a new package by Laracademy that allows you to get interactive questions after running php artisan make.

On the project page they have created this animated Gif which gives a great overview of how the package works:

For more information check out the project page on Github and you can install it easily through composer:

composer require laracademy/interactive-make

Then add its service provider to the config/app.php:

LaracademyCommandsMakeServiceProvider::class,

Finally, run php artisan make to get a list of the commands available.

Source: Laravel News

Community Corner: Discourse Forums!

For many years, we’ve had requests for dedicated Zend Framework forums. We’ve
resisted doing so, and instead deferred to using mailing lists and Stack
Overflow tags. However, these are imperfect: searching for questions and answers
is often difficult if not impossible.

Discourse

In the past few years, Discourse has proved itself
as a community-centric forum solution. Further, they have started offering
free hosting for open source communities, making it a compelling option to
consider.

We recently reached out to them, and they have agreed to host the Zend Framework
forums for us.

Zend Framework Community

So, please join us on the Zend Framework Discourse Forums!

You may sign up with any Google, GitHub, or Twitter account, or register
directly with the site.

Some pages of interest:

Additionally, we have setup a section for
contributors to discuss
architecture, milestones, etc.

Welcome all, and we look forward to your conversations!

Source: Zend feed

Ajaxifying the Delete Button

Now that each reply is wrapped within a dedicated Vue instance, we can easily swap out the traditional form for deleting the reply with a snappier AJAX version that doesn’t require a page refresh.

View the source code for this episode on GitHub.
Source: Laracasts

Joomla Falang: new release v2.8.3

Changelog

2.8.3 (2017/04/26)

  • add content element for custom field (Joomla 3.7)
  • add custom fields in falang edit mode(readonly only)(Joomla 3.7)
  • remove warning message (Joomla 3.7)
  • remove hreflang for inactive language menu item
  • metakey resizable comme metadesc (text area) article/menu
  • fix status translation due to images&links system
  • add store orginal text for param’s type too
  • fix bug on cache (thanks nicolas from hikashop)
  • change footer

CB AntiSpam 3.0 for Joomla released!

Protect your Community Builder site against spammers with CB AntiSpam 3.0.

This is a major release with 12 new features and 9 bug fixes. We have already installed it on our demo site, so feel free to preview it on us before you install it on your website.

Among the new features are:

  • 5 modes of operation including honeypot and reCaptcha invisible
  • block by ip range and wildcard substitutions in ip lists
  • image output improvements to make spambots suffer
  • account blocking (Joomla level) with optional profile banning

Do you want to win a large ZendCon 2017 ElePHPant?

Refer-a-friend and grow your herd

Around a quarter of all ZendCon registrants are referred by a friend or co-worker.

Let’s keep this trend going. Invite your friends and co-workers to attend ZendCon with you and be rewarding with a chance to win a large version of a ZendCon 2017 ElePHPant.

It’s easy to enter. Tell your friends and co-workers to register for ZendCon. On the registration form, when they’re asked “how did you hear about the conference?”, select “Friend/co-worker” and include your name in the space provided.

Email, tweet, word-of-mouth: Multiple referrals mean multiple chances for you to win, so start spreading the word.

Make sure you and your friends get the best deal for ZendCon 2017. Blind bird pricing ends May 31. Get everyone registered to save.

A Vue Reply Component

We’re starting to realize that each individual forum reply should have a decent amount of behavior associated with it. With that in mind, in this episode we’ll create a dedicated Vue component for a reply, and then implement the necessary functionality to quickly edit the body of a reply without requiring a page refresh.

View the source code for this episode on GitHub.
Source: Laracasts

How Do I Reference Objects Like Arrays

From time to time, you may find yourself in the position of needing to interact with an object’s data as if it’s an array. The solution is to implement PHP’s ArrayAccess interface. I’ll show you how in this episode.
Source: Laracasts

Laravel 5.5 Gets Improvements with the Default Error Views

Coming in Laravel 5.5 is a new and improved design for the error pages. The default errors will extend from an errors::layout file and get some small design additions over the current style with flexbox and a vertically centered message.

Here is how the current 50* error page looks in Laravel 5.4:

Coming to Laravel 5.5 is a new modern design:

Customizing the Laravel Error Messages

Just as before you can still easily customize the Laravel error views by creating your own in the resources/views/errors* directory. It works by naming your Blade file the same as the error number. So if you want to have a custom 500 page, then you would create resources/views/errors/500.blade.php.

Inside this template, you can adjust the following sections:

@extends('errors::layout')

@section('title', 'Error')

@section('message', 'Sorry, we are having a temporary problem. We have been alerted and will be rolling out a fix soon')

The parent errors::layout comes from inside the framework and you are welcome to continue using it, or create your layout file and extend it.

By default, Laravel comes with the following included error files:

  • 404.blade.php
  • 419.blade.php
  • 500.blade.php
  • 503.blade.php

Finally, if you are curious on how Laravel determines the error view file to show the user take a look at the renderHttpException method.

The first main part is the replaceNamespace call which says to first look in your “resources/views” folder, then fallback to the “views” within the framework:

view()->replaceNamespace('errors', [
    resource_path('views/errors'),
    __DIR__.'/views',
]);

Then it returns the view of the status code if it exists:

return response()->view("errors::{$status}"

As a side note, this same fallback pattern can be setup in your views by adding additional paths to your “config/views.php” file.

'paths' => [
    realpath(base_path('resources/views/new-design')),
    realpath(base_path('resources/views')),
],

Now Laravel will look for a template file in the “new-design” folder and use it if it’s found, otherwise, it’ll use it from the “views” folder.

Source: Laravel News

Doorman – Limit access to your Laravel applications through invite codes

Doorman is a Laravel package that allows you to limit access to your Laravel applications by using invite codes.

Once installed you can generate and redeem invites through the Doorman facade and it includes support for Form Request validation.

You can generate new invites like this:

// Generate a single invite
Doorman::generate()->make();

// Generate five invites
Doorman::generate()->times(5)->make();

// Make an invite that expires on a specific date.
$date = Carbon::now('UTC')->addDays(7);
Doorman::generate()->expiresOn($date)->make();

// Make an invite that expires in 14 days.
Doorman::generate()->expiresIn(14)->make();

// Or even bind it to a specific person
Doorman::generate()->for('me@example.org')->make();

Redeeming is just as simple:

Doorman::redeem('ABCDE');
// or
Doorman::redeem('ABCDE', 'me@example.org');

If you’d like to start a private invite system to your app check out the Doorman package on Github.

Source: Laravel News

1 2 3 4 5 53