84 |
85 |
86 |
87 |
88 |
Server Error: 500 (Internal Server Error)
89 |
90 |
What does this mean?
91 |
92 |
93 | Something went wrong on our servers while we were processing your request.
94 | We're really sorry about this, and will work hard to get this resolved as
95 | soon as possible.
96 |
97 |
98 |
99 | Perhaps you would like to go to our ?
100 |
101 |
102 |
103 |
--------------------------------------------------------------------------------
/laravel/cache/drivers/file.php:
--------------------------------------------------------------------------------
1 | path = $path;
21 | }
22 |
23 | /**
24 | * Determine if an item exists in the cache.
25 | *
26 | * @param string $key
27 | * @return bool
28 | */
29 | public function has($key)
30 | {
31 | return ( ! is_null($this->get($key)));
32 | }
33 |
34 | /**
35 | * Retrieve an item from the cache driver.
36 | *
37 | * @param string $key
38 | * @return mixed
39 | */
40 | protected function retrieve($key)
41 | {
42 | if ( ! file_exists($this->path.$key)) return null;
43 |
44 | // File based caches store have the expiration timestamp stored in
45 | // UNIX format prepended to their contents. We'll compare the
46 | // timestamp to the current time when we read the file.
47 | if (time() >= substr($cache = file_get_contents($this->path.$key), 0, 10))
48 | {
49 | return $this->forget($key);
50 | }
51 |
52 | return unserialize(substr($cache, 10));
53 | }
54 |
55 | /**
56 | * Write an item to the cache for a given number of minutes.
57 | *
58 | *
84 |
85 |
86 |
87 |
88 |
Server Error: 404 (Not Found)
89 |
90 |
What does this mean?
91 |
92 |
93 | We couldn't find the page you requested on our servers. We're really sorry
94 | about that. It's our fault, not yours. We'll work hard to get this page
95 | back online as soon as possible.
96 |
97 |
98 |
99 | Perhaps you would like to go to our ?
100 |
101 |
102 |
103 |
--------------------------------------------------------------------------------
/laravel/tests/application/config/error.php:
--------------------------------------------------------------------------------
1 | array(E_NOTICE, E_USER_NOTICE, E_DEPRECATED, E_USER_DEPRECATED),
17 |
18 | /*
19 | |--------------------------------------------------------------------------
20 | | Error Detail
21 | |--------------------------------------------------------------------------
22 | |
23 | | Detailed error messages contain information about the file in which an
24 | | error occurs, as well as a PHP stack trace containing the call stack.
25 | | You'll want them when you're trying to debug your application.
26 | |
27 | | If your application is in production, you'll want to turn off the error
28 | | details for enhanced security and user experience since the exception
29 | | stack trace could contain sensitive information.
30 | |
31 | */
32 |
33 | 'detail' => true,
34 |
35 | /*
36 | |--------------------------------------------------------------------------
37 | | Error Logging
38 | |--------------------------------------------------------------------------
39 | |
40 | | When error logging is enabled, the "logger" Closure defined below will
41 | | be called for every error in your application. You are free to log the
42 | | errors however you want. Enjoy the flexibility.
43 | |
44 | */
45 |
46 | 'log' => false,
47 |
48 | /*
49 | |--------------------------------------------------------------------------
50 | | Error Logger
51 | |--------------------------------------------------------------------------
52 | |
53 | | Because of the various ways of managing error logging, you get complete
54 | | flexibility to manage error logging as you see fit. This function will
55 | | be called anytime an error occurs within your application and error
56 | | logging is enabled.
57 | |
58 | | You may log the error message however you like; however, a simple log
59 | | solution has been setup for you which will log all error messages to
60 | | text files within the application storage directory.
61 | |
62 | */
63 |
64 | 'logger' => function($exception)
65 | {
66 | Log::exception($exception);
67 | },
68 |
69 | );
--------------------------------------------------------------------------------