laravel-4 Questions
19
Laravel is not sending emails; I set it up to use the mail driver and put in the right code, but it seems not to work at all. Besides not working, it doesn't even give me an error!
Here is my confi...
5
Solved
11
Solved
I recently added a package to my Laravel 4 site and now anything that uses Eloquent (or at least Eloquent with any reference to date/time) is showing a 500 error that states:
Class 'Carbon\Carbon'...
Beriberi asked 26/1, 2014 at 17:20
9
Laravel - Error messages not translating to actual error message, start with "validation."
I am having issues trying to get form validation working in Laravel which is odd because it usually just works.
In my user model I have created rules for the validation:
public static $rules = ar...
Lanalanae asked 23/9, 2014 at 20:49
14
Solved
I want to send a confirmation e-mail using laravel.
The laravel Mail::send() function only seems to accept a path to a file on the system.
The problem is that my mailtemplates are stored in the dat...
Fireworks asked 1/10, 2014 at 11:7
3
Solved
I've autoloaded a class, which is properly namespaced and PSR-0. I put it in app/lib/CI, and the class and it's filename are the same "DB". The class file itself includes a config file before the a...
26
My laravel installation was working fine yesterday but today I get the following error:
Forbidden
You don't have permission to access / on this server.
Additionally, a 403 Forbidden error ...
19
Solved
I have a table that contains, amongst other columns, a column of browser versions. And I simply want to know from the record-set, how many of each type of browser there are. So, I need to end up wi...
3
Solved
I've read lots of documentation about testing controllers using $this->call($destination, $parameters, 'GET'); but this seems to rely on the route being set up too, and knowing the right $destin...
Delve asked 26/9, 2013 at 13:33
3
Solved
In Laravel 4, I want to protect some complex database queries from SQL injection. These queries use a combination of the query builder and DB::raw(). Here is a simplified example:
$field = 'email';...
4
Solved
I would like to display processing progress using a simple series of dots. This is easy in the browser, just do echo '.' and it goes on the same line, but how do I do this on the same line when sen...
6
Solved
I have a Laravel 4 test class with some tests for which I want to seed my database before running the tests. Using the setup() function to reseed for each test takes far too long. However, when I t...
8
Solved
I want to set headers as array('Cache-Control'=>'no-cache, no-store, max-age=0, must-revalidate','Pragma'=>'no-cache','Expires'=>'Fri, 01 Jan 1990 00:00:00 GMT'); for all my views, current...
3
Solved
How would I get inside of a custom model the columns for a specific MySQL table using Eloquent in Laravel
I was trying DB::query("SHOW COLUMNS FROM " . $table) but without any success
3
Solved
I'm trying to use Laravel packages. I created MyVendor/MyPackage
Routes, controllers, filters are already working. This is the classmap of my package:
"classmap": [
"src/migrations&...
7
Solved
I have the following rules :
'Fno' => 'digits:10'
'Lno' => 'min:2|max:5' // this seems invalid
But how to have the rule that
Fno should be a digit with minimum 2 digits to maximum 5 digits a...
14
Solved
I am working on search filter on checkbox click, with Laravel and Ajax call. So I get results when I click on a checkbox. my query is as follows:
$editors = User::with(['editor.credentials','editor...
Robi asked 22/7, 2014 at 15:18
8
Problem 1:
I tried install laravel 4 on my server (Ubuntu 12.04, nginx, php5-fpm) but installation hangs:
# composer install --verbose
Loading composer repositories with package information
Insta...
Corelli asked 6/11, 2013 at 23:43
35
Solved
I know this question has been asked many times before but no one explains how to get the id when you're validating in the model.
'email' => 'unique:users,email_address,10'
My validation rule ...
Papilionaceous asked 11/5, 2014 at 0:55
2
Solved
I'm trying to recover a project after a failed HDD. Lost the mysql information, so just have the project code.
I hoped to be able to put my database back together by using artisan migrate, but the...
Cuboid asked 4/2, 2014 at 18:55
12
Solved
I'm trying to convert a query to an array with the method toArray() but it doesn't work for the query builder. Any ideas for convert it?
Example
DB::table('user')->where('name',=,'Jhon')->g...
Astred asked 25/12, 2013 at 20:50
18
Solved
When I run composer update I receive some wired output.
Here is my composer.json look like.
{
"name": "laravel/laravel",
"description": "The Laravel Framework.", "keywords": ["framework...
Neves asked 28/3, 2015 at 15:8
4
Solved
I'm using phpunit with Laravel 4 framework. Why is it that when there's a PHP error during the tests, no error messages are shown (eg: missing method)?
How can we get phpunit to show all errors?
...
11
I've setup a new install of Laravel on my local. It appears there are issues with htaccess or Apache settings. I've researched for a number of hours and tried everything I read.
OSX Lion 10.7.5 ...
Leicestershire asked 7/7, 2014 at 21:51
4
Solved
i am very new in Laravel,currently working with Laravel4.I am trying to add a multiple column search functionality in my project.I can do single column eloquent search query,But honestly i have no ...
© 2022 - 2025 — McMap. All rights reserved.