Laravel Community Tools by Tighten

Mahmoud Zalt

Joined: 11 years ago
Total tricks: 25
Last trick: 10 years ago

Submitted tricks

Using jQuery AJAX call to collect paginated data.
Mahmoudz 11 years ago 22493
There are three components to generating a Facade: 1 - The wanna be Facade Class, (the class that needs to become a facade). 2 - The Facade required Class, (which tells Laravel which registered class it pertains to) 3 - A Service Provider, (which registers the Facade class in the App container)
Mahmoudz 10 years ago 7507
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 6150
This is how to add a Foreign Keys in the Migration.
Mahmoudz 10 years ago 6660
adding default current timestamp.
Mahmoudz 10 years ago 32857
replace this in the start/global.php file:
Mahmoudz 10 years ago 7660
in this example there is a one to many relation. [course has many chapters]
Mahmoudz 10 years ago 11321
Add the attributes on the second parameter of the attach function.
Mahmoudz 10 years ago 15035
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 6841