Laravel Community Tools by Tighten

Mahmoud Zalt

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

Submitted tricks

Using jQuery AJAX call to collect paginated data.
Mahmoudz 11 years ago 23033
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 11 years ago 7886
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 11 years ago 6494
This is how to add a Foreign Keys in the Migration.
Mahmoudz 11 years ago 6942
adding default current timestamp.
Mahmoudz 11 years ago 33250
replace this in the start/global.php file:
Mahmoudz 11 years ago 7962
in this example there is a one to many relation. [course has many chapters]
Mahmoudz 11 years ago 11713
Add the attributes on the second parameter of the attach function.
Mahmoudz 11 years ago 15393
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 11 years ago 7303