Laravel Community Tools by Tighten

Recent tricks

458 tricks
This sample covers the following scenario: Every course has may chapters, while a chapter can belong to only one course. In the other hand every chapter has many videos while a video can belong to many chapters. I will write the description below.
Mahmoudz 10 years ago 13401
The example doesn't cover every single aspect, but the very major things.
Mahmoudz 10 years ago 16090
5.0
Getting an instance of the Laravel IOC container for testing. ONLY IF THE FUNCTIONAL TEST IS INSIDE A LARAVEL PACKAGE YOU CAN DO THE FOLLOWING: EXTEND THIS FROM YOUR PARENT TEST CLASS.
Mahmoudz 10 years ago 6851
Add the attributes on the second parameter of the attach function.
Mahmoudz 10 years ago 15043
in this example there is a one to many relation. [course has many chapters]
Mahmoudz 10 years ago 11330
replace this in the start/global.php file:
Mahmoudz 10 years ago 7667
adding default current timestamp.
Mahmoudz 10 years ago 32865
This is how to add a Foreign Keys in the Migration.
Mahmoudz 10 years ago 6668
1 . remove the Laravel4 module from the functional.suite.yml 2. codeception build 3. inside the FunctionalHelper, do extend the \Codeception\Module\Laravel4 4. and there add your extra Laravel functions.
Mahmoudz 10 years ago 6158