Jeśli jesteś właścicielem tej strony, możesz wyłączyć reklamę poniżej zmieniając pakiet na PRO lub VIP w panelu naszego hostingu już od 4zł!
Strony WWWSerwery VPSDomenyHostingDarmowy Hosting CBA.pl

Archive for Kwiecień, 2018

Pineco.de: Lightweight Breadcrumbs in Laravel

Pineco.de: Lightweight Breadcrumbs in Laravel

On the Pineco.de site they’ve posted a tutorial showing how to create a lightweight breadcrumb system for use in a Laravel application. It makes use of a "view composer" to help translate the current path into a matching "crumb".

Breadcrumbs are important in web applications. But most of the time, it’s not the easiest to track the different levels in your URL and generate breadcrumbs from it. Now we give it a try with a simple yet elegant solution.

The post starts by describing the basic concept and the article that inspired their finished product. They needed a dynamic solution that could translate the URL to a breadcrumb list. They created an array with a crumb-to-URL relationship and made use of Laravel’s view composer handling to create the collection of crumbs from the current request information. Finally they include the partial view that can be used to render the results, looping through them and outputting each as a link.

Source: http://www.phpdeveloper.org/news/26165

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Pineco.de: Lightweight Breadcrumbs in Laravel

Pineco.de: Lightweight Breadcrumbs in Laravel

On the Pineco.de site they’ve posted a tutorial showing how to create a lightweight breadcrumb system for use in a Laravel application. It makes use of a "view composer" to help translate the current path into a matching "crumb".

Breadcrumbs are important in web applications. But most of the time, it’s not the easiest to track the different levels in your URL and generate breadcrumbs from it. Now we give it a try with a simple yet elegant solution.

The post starts by describing the basic concept and the article that inspired their finished product. They needed a dynamic solution that could translate the URL to a breadcrumb list. They created an array with a crumb-to-URL relationship and made use of Laravel’s view composer handling to create the collection of crumbs from the current request information. Finally they include the partial view that can be used to render the results, looping through them and outputting each as a link.

Source: http://www.phpdeveloper.org/news/26165

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Pineco.de: Lightweight Breadcrumbs in Laravel

Pineco.de: Lightweight Breadcrumbs in Laravel

On the Pineco.de site they’ve posted a tutorial showing how to create a lightweight breadcrumb system for use in a Laravel application. It makes use of a "view composer" to help translate the current path into a matching "crumb".

Breadcrumbs are important in web applications. But most of the time, it’s not the easiest to track the different levels in your URL and generate breadcrumbs from it. Now we give it a try with a simple yet elegant solution.

The post starts by describing the basic concept and the article that inspired their finished product. They needed a dynamic solution that could translate the URL to a breadcrumb list. They created an array with a crumb-to-URL relationship and made use of Laravel’s view composer handling to create the collection of crumbs from the current request information. Finally they include the partial view that can be used to render the results, looping through them and outputting each as a link.

Source: http://www.phpdeveloper.org/news/26165

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Symfony Finland: MySQL 8.0 released with new features and improved performance

Symfony Finland: MySQL 8.0 released with new features and improved performance

On the Symfony Finland site they cover a recent announcement from MySQL about the release of their latest version: MySQL 8.0. In this post they cover some of the new features and performance improvements that come with this new version.

The MySQL development team has announced the General Availability of the MySQL 8.0.0 Open Source database.

This is the version following MySQL 5.7 that was released in late 2015 with interesting features like extensive JSON field support. Plenty of work has gone into this version as well and in an introductory post goes in-depth into all the enhancements.

The post includes a listing of eight topics (ironically) for the new updates including:

  • Support for Window functions, Common Table Expressions, NOWAIT and SKIP LOCKED, Descending Indexes, Grouping, Regular Expressions, Character Sets, Cost Model, and Histograms (SQL)
  • Geography support. Spatial Reference Systems (SRS), as well as SRS aware spatial datatypes, spatial indexes, and spatial functions.
  • Remote management, Undo tablespace management, and new instant DDL.
  • OpenSSL improvements, new default authentication, SQL Roles, breaking up the super privilege, password strength, and more.

Check out the rest of this post for more of the overview or MySQL’s official announcement for the full details.

Source: http://www.phpdeveloper.org/news/26164

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Gary Hockin: Conference Speaking for Everyone – Submitting Chapter (Free)

Gary Hockin: Conference Speaking for Everyone – Submitting Chapter (Free)

Gary Hockin had been working on a book for anyone out there looking to share their experience or ideas at a tech conference but didn’t end up finishing it: "Conference Speaking for Everyone". He did want to share some of the content from the book to at least help would-be speakers deal with one of the main parts of conference speaking: Submitting to a Call for Papers.

What even is this? This is a full chapter from my started-but-never-finished book called Conference Speaking for Everyone. I’m posting this finished single chapter that’s been sitting on my laptop for nearly a year to a) Get some feedback and hopefully some impetus to finish the book, and b) Put what I hope is some useful information into the hands of the people who need it.

In the example chapter he covers topics like:

  • how speakers are accepted to speak at a conference
  • what kind of topics you could potentially speak about
  • tips for writing session abstracts/summaries

He finishes up the chapter with a mention of expenses around the speaking (if selected). The policies from conference to conference vary, so he recommends being sure you completely understand them before agreeing to speak.

Source: http://www.phpdeveloper.org/news/26163

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Laravel News: Running the Laravel Scheduler and Queue with Docker

Laravel News: Running the Laravel Scheduler and Queue with Docker

On the Laravel News site today there’s a tutorial posted showing you how to combine Docker and Laravel’s Scheduler/Queue and make them still run as they would on a virtual server.

In Laravel, one of the tricky changes when switching from a virtual server to Docker is figuring out how to run a scheduler and a queue worker. I see this question come up quite a bit when PHP developers are trying to figure out how to use Laravel with Docker.

Should you run them on the host server? Should you run via cron in a Docker container?

There are a couple of ways I recommend running the scheduler command and Laravel queues in Docker, and we’re going to cover the basics of running both with a complete (albeit simple) Docker setup you can use to experiment.

Their approach uses a single multi-purpose Docker image rather than splitting the functionality up and making it more complex (Laravel subscribes to the monolithic approach anyway). The post then gets into the setup of this environment using Docker and docker-compose to configure several services: application (app), a Redis container and a MySQL container. The contents of the docker-compose and Dockerfile configurations are included as well as the VirtualHost configuration for the main site. Next it shows the use of the CMD directive to run a bash script when the build is brought up. This is what kicks off the scheduler/queue handling. The post finishes up with a few other changes needed to the Docker configuration and the creation of the "scheduler" service.

Source: http://www.phpdeveloper.org/news/26162

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Community News: Recent posts from PHP Quickfix (04.25.2018)

Community News: Recent posts from PHP Quickfix (04.25.2018)

Recent posts from the PHP Quickfix site:

Source: http://www.phpdeveloper.org/news/26161

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Community News: Recent posts from PHP Quickfix (04.25.2018)

Community News: Recent posts from PHP Quickfix (04.25.2018)

Recent posts from the PHP Quickfix site:

Source: http://www.phpdeveloper.org/news/26161

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Community News: Recent posts from PHP Quickfix (04.25.2018)

Community News: Recent posts from PHP Quickfix (04.25.2018)

Recent posts from the PHP Quickfix site:

Source: http://www.phpdeveloper.org/news/26161

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

TutsPlus.com: Notifications in Laravel

TutsPlus.com: Notifications in Laravel

On the TutsPlus.com site they’ve posted a new tutorial for the Laravel users out there showing how to work with notifications, a feature build into the framework to make it simpler to provide information to users when certain events are triggered.

In this article, we’re going to explore the notification system in the Laravel web framework. The notification system in Laravel allows you to send notifications to users over different channels. Today, we’ll discuss how you can send notifications over the mail channel.

The tutorial starts with some of the basics of the notification system including a mention of the other methods (like SMS and Slack) and storing them in a database for other interaction. It then moves on to the creation of a Messages model and a custom notification class to send email to a when a new message is sent from another user. With the class created, they move into the process required to send the notification using the Notification::send method.

Source: http://www.phpdeveloper.org/news/26160

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>