Posts by SOSTheBlack • 339 points
18 posts
-
0
votes0
answers43
viewsQ: Phpunit call native function once and return stdClass
github.com/Hubtodo/traits/blob/master/tests/Jsonrendertest. p hp I’m doing a successful test of my trait function My trait is this: <?php namespace HubToDo\Traits; use InvalidArgumentException;…
-
2
votes1
answer3116
viewsQ: Add multiple select Count results to MYSQL
I’m wanting to add up all the clients I have on all my bases, so for that I’m doing the following query: SET @total = 0; USE BASE x1; SELECT @total:= @total +COUNT(1) FROM clientes; USE BASE x2;…
-
0
votes2
answers1023
viewsA: Route Post is not being recognized (Laravel)
I don’t know why it’s not working, I would advise you to open an Issue here reporting the error. Another way to use route post is through Function match, passing 'post' within an array in the first…
-
1
votes2
answers1208
viewsA: Import library to Laravel 5
The aliases you are instantiating are a class FPDF inside the namespace App\Libraries in your config.php is like this 'aliases' => [ 'FPDF' => 'App\Libraries\FPDF', But what we want is to…
-
0
votes0
answers98
viewsQ: Request item is not returning in ajax Function
I have a problem in my application in which I have not the least idea how to solve, let alone the reason for the problem It turns out that an index is not specifically returning in my request within…
-
2
votes2
answers1025
viewsQ: Close get request as soon as you start another
In my Commerce there is a search field. As you type, you return a list of products in a div below the search field. That’s 100% On the label I put an onkeyup that performs a function that searches…
-
2
votes1
answer233
viewsA: Fancybox with dynamic size
On your link the file name should be with simple quotes, the measurements of the parameters, should also be with simple quotes, and should contain the unit of measure, in the example at low pixel…
-
1
votes1
answer45
viewsA: Error: Shell class Syncaccesstokenshell could not be found
The problem wasn’t in ngnix! I decided to go to php.ini, in open_short_tags put on, because it was off open_short_table lets you open php files using only What happened was that the class file was…
-
0
votes2
answers353
viewsA: Form post does not work in Laravel 4
you came to give F12 and see if the post is being sent even, I think so. What’s wrong with your code is Request::getMethod(); Think with me... If your form method is post, why do you think seeking…
-
1
votes2
answers97
viewsA: Create user with encrypted password
put the code after validation, it would look something like this if ($validation->passes()) { $input['password_confirmation'] = hash::make($input['password_confirmation']); User::create($input);…
-
1
votes1
answer45
viewsQ: Error: Shell class Syncaccesstokenshell could not be found
My app is cake 2.4.4, is hosted on Amazon. Before the server was apache, but now we migrate to Nginx for better performance. As it was to be expected several problems occurred (normal), one more of…
-
1
votes2
answers666
viewsA: Model delete method does not erase record
Use Builder instead of ORM as a test DB::table('users')->where('id', 2)->delete(); I think this will work
-
3
votes1
answer890
viewsA: Error in Laravel after inserting save()
This is happening because in your table you have not created the columns created_at and updated_ad, to add them in your table, in your schema add the row $this->timestamps(); this way he will…
-
1
votes2
answers856
viewsA: How to deploy Laravel 4.2 applications via FTP?
For a deploy tool use the http://dploy.io/ it works in several ways, and one of it is FTP, and this will suit you, you will have to have a repository in bit or git following your server’s rules.…
-
1
votes1
answer64
viewsA: Back Problem/Doubt button
It’s hard to understand what you meant, but you want to go back to the previous page before accessing the page workers regardless of which one. If that is your need, the code below will solve your…
phpanswered SOSTheBlack 339 -
2
votes3
answers1012
viewsA: User Authentication with Laravel 4
As organized as possible I think it’s something like this, route: All my routes for the admin panel are inside the admin prefix filter. Inside the admin we have two filters. admin.guest, that if you…
-
-1
votes3
answers1570
viewsA: Laravel Log In Error
Contascontroller.php public function postLogin(){ $validator = Validator::make(input::all(), User::$rulesLogin); if( $validator->fails() ){ return Redirect::route( 'home' ) ->withErrors(…
-
1
votes2
answers343
viewsA: Securing routes in Laravel 4
if(Auth::check()){ Route::group(array('before' => 'auth'), function(){ Route::get('/', array( 'as' => 'home', 'uses' => 'HomeController@index'// sua home do logado …