Posts by ZoyO • 22 points
4 posts
-
0
votes1
answer50
viewsA: Retrieve and separate data that is not in the array
(...) for ($i = 1; $i <= 6; $i++) { if(in_array($i, $menu)){ echo 'ID '.$i.' existe no Array.<br>'; if($menu->id >= 1 && $menu->id <= 6){ …
-
-1
votes1
answer130
viewsA: How to Design Wamp for Lamp
opens the public_html/index.php file and modifies the original directory: require __DIR__ . '/.. /bootstrap/autoload.php'; $app = require_once __DIR__ . '/.. /bootstrap/app.php'; for require __DIR__…
-
0
votes1
answer546
viewsA: how to pass many controller variables to the view in the Laravel
You can put all data in 1 array and return the array: $data = array( 'sums' => $sums[0]->p, 'somas1' => $somas1[0]->s, '...' => '...' ); Return view('score')->with('data', $data);…
-
0
votes1
answer66
viewsA: 404 when accessing via route Edit
to use the RESOURCE method on the route, do not put inside the prefix. Route::Resource('product','Controllerproduct'); uses this out of the prefix and forehead!…