Category : laravel-5

So, I have a form in my blade file which looks something like this <div class="container p-2"> <form action="/studentUpdateSelf" method="post"> {{csrf_field()}} <!– the other fields here –> </form> </div> And then in my web.php file, I have the route set like this Route::post(‘/studentUpdateSelf’, ‘[email protected]’); However, when I click the submit button it shows an error: ..

Read more

i have installed ImageMagick in my mac book by using home brew, when i search that imageMagick is available in my mac book, the below are search results screenshot. i am using image intervention package when i store my picture in my server, getting error code explain below // Store a copy if($request->hasFile(‘profilepicture’)) { $image_org ..

Read more

I want to insert " [email protected]#$%^&*()?<>:| " this string into my table but when I hit save it inserts only this much in table [email protected]#$%^, rest of the characters doesn’t store in the table. Here is my laravel controller code public function store(Request $request) { $x = $request->get(‘task_name’); DB::insert(‘insert into tasks (task_name) values (?)’, [$x]); ..

Read more

My Laravel application (version 5.0.33) has suddenly started throwing the following error: local.ERROR: exception ‘PDOException’ with message ‘SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute.’ ..

Read more