Questions tagged [Laravel] (4037)

9
answers

Prinuditelnaya clear memory PHP

Faced with the problem, you need to perform infinite number of iterations. But with each iteration increases the amount of script memory. Here is a small test. public function memory() { $text = 'Lots of text'; $baseMemory = memory_get_usage(); gc_enable(); for ($x = 0; $x++ < 100000;) { Test::create($text); if ($...
Cortez29 asked October 3rd 19 at 11:41
2
answers

Very difficult to debug Laravel?

Incredibly hard to correct mistakes when you see it:Uncaught exception 'ErrorException' with message 'htmlspecialchars() [<a href="function.htmlspecialchars">function.htmlspecialchars</a>]: Invalid multibyte sequence in argument' ...and sheets Bektasov. How to be in these situations? P. S. Diamonds does not offe...
Maci_Kozey asked October 3rd 19 at 02:02
3
answers

What is a package for Laravel 4 for transliteration of Russian in Latin?

Good afternoon. Anyone know of any package for Laravel 4 for transliteration of Russian in Latin?
Angelica.Schamberger asked October 3rd 19 at 01:58
1
answer

The problem with the launch of the project on Laravel in Windows7 (maybe slashes and/or autoload)

On the machine stack is installed and running Apache 2.4.7 - PHP 5.5.6 - MySQL 5.6. Composer ω updated the project runs artisan ohms. Every time you open localhost:8000 in the shell displays an error typePHP Fatal error: Trait 'helpers\HelperTrait' not found in D:\project\app\models\Article.php on line 5 Ie, all the files a...
Rahul_Kshlerin asked October 2nd 19 at 22:55
2
answers

Laravel 4: Call library -&gt; Error

Faced the following problem. This structure:--app --libraries --bet.php bet.phpclass Bet { public static function auth() { } } Next, I created Commands in the file GetEvent.php. Added run it in the artisan. And run php artisan command:GetEvent. GetEvent.phppublic function fire() { print_r(Bet::auth()); // Here I'm tryi...
Hardy.Predov asked October 2nd 19 at 13:16
1
answer

laravel. Create a form with CSRF

Please help. Make the check. Created a controller UserController which has functions for resource index, create, update, store. For user registration I decided to use store. Created a page with a form:<?php echo "\n"; echo Form::open(array('url' =--> 'user')); echo Form::token(); echo "\n"; ?> ..... <?php ech...
Hardy.Predov asked October 1st 19 at 02:57
1
answer

Why laravel can't log in user?

When you register and create passwords for different users, the hash is always different. Is this normal? And I can't authenticate the user. I think so.
Hardy.Predov asked October 1st 19 at 02:37
1
answer

Laravel 4.1 Why CSRF protection is not working after the update?

Updated from 4.0.3 to 4.1. And after that, the filter started to issue csrf mismatch token. Though check the form token is, the filter gets it. But the session is already another token. It changes before a filter was triggered. Routh spelled correctly.Route::post('login', array( 'before' => 'csrf', 'uses' => 'AuthCo...
Angelica.Schamberger asked October 1st 19 at 00:15
7
answers

As on PHP to implement a continuous task?

Hello! There is some problem (infinite loop) that runs continuously. The option of running for the crown is not suitable, because it is impossible to predict how many will be part of the problem. The app itself is on Laravel, so I think to use the queue mechanism and Artisan. But if something happens during execution, the q...
Brett_Barton asked September 30th 19 at 18:30
2
answers

Laravel. ACL. The problem with logic?

Write for personal use extension for Laravel to control access to the site. Didn't use any ready-made solutions. Are guided by logic. First describe what came up, then question. Doubt what to bind: to the URL or to methods in controllers. Stopped on the methods in the controllers. What actions may be necessary to protect:...
bernita_Johnson asked September 30th 19 at 16:57