Laravel Package Development - e05 - Press File Structure

preview_player
Показать описание
We are going to have a special format for our blog posts, so we are tackling the regular expression in this segment to make that work for our project. We will wrap it up with a parser class and tests.

About this Course
In this series, we are tackling Laravel Package Development from scratch. Developing your own packages maximizes your code reusability, helps you with versioning and opens a huge door of possibility for external contributions by other developers. Come along for the ride as we learn everything from setting up tests to package auto discovery.
Рекомендации по теме
Комментарии
Автор

Thx for this series of package development - helped me a lot.
Just one note: The question mark in ".*?" does not mean it is optional - in this context it's the non-greedy syntax.

Erik-orqy
Автор

If you try this with PHPUnit >= 8 you need to change
$this->assertContains
to

to make this work

Anaxarchos
Автор

I get this error when ruining test RuntimeException: A facade root has not been set.

madusankadissanayake
Автор

1)
Error: Class not found..when i run every time this test it gives me class not found error..how can i solve this problem..please help me!!

Oopsmeop_Motivation
Автор

When i run test phpunit tell me that: No tests executed!

neocarvajal