12. Illuminate\Database\Eloquent\ModelNotFoundException
…/­vendor/­laravel/­framework/­src/­Illuminate/­Database/­Eloquent/­Model.php498
11. Illuminate\Database\Eloquent\Model findOrFail
…/­app/­controllers/­front/­ApplyFormsController.php35
10. ApplyFormsController create
<#unknown>0
9. call_user_func_array
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Controllers/­Controller.php138
8. Illuminate\Routing\Controllers\Controller callMethod
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Controllers/­Controller.php115
7. Illuminate\Routing\Controllers\Controller callAction
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Router.php985
6. Illuminate\Routing\Router Illuminate\Routing\{closure}
<#unknown>0
5. call_user_func_array
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Route.php80
4. Illuminate\Routing\Route callCallable
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Route.php47
3. Illuminate\Routing\Route run
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Router.php1016
2. Illuminate\Routing\Router dispatch
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php576
1. Illuminate\Foundation\Application dispatch
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php552
0. Illuminate\Foundation\Application run
…/­public_html/­index.php49

Illuminate \ Database \ Eloquent \ ModelNotFoundException

	 * @param  array  $columns
	 * @return \Illuminate\Database\Eloquent\Model|Collection|static
	 */
	public static function findOrFail($id, $columns = array('*'))
	{
		if ( ! is_null($model = static::find($id, $columns))) return $model;
 
		throw new ModelNotFoundException;
	}
 
 
        $course_names = $course_names_query->lists('name', 'course_id');
 
		if($course_id > 0) {
 
            $course_clones = $course_names_query->lists('course_id', 'cloneof_id');
 
			$course = Course::findOrFail($course_id);
 
			$selected_course_name = $course->id;
<#unknown>
	 *
	 * @param  string  $method
	 * @param  array   $parameters
	 * @return mixed
	 */
	protected function callMethod($method, $parameters)
	{
		return call_user_func_array(array($this, $method), $parameters);
	}
 
		// after filters on the controller to wrap up any last minute processing.
		$response = $this->callBeforeFilters($router, $method);
 
		$this->setupLayout();
 
		if (is_null($response))
		{
			$response = $this->callMethod($method, $parameters);
		}
 
			// We will extract the passed in parameters off of the route object so we will
			// pass them off to the controller method as arguments. We will not get the
			// defaults so that the controllers will be able to use its own defaults.
			$args = array_values($route->getParametersWithoutDefaults());
 
			$instance = $ioc->make($controller);
 
			return $instance->callAction($ioc, $me, $method, $args);
		};
	}
<#unknown>
	 *
	 * @return mixed
	 */
	protected function callCallable()
	{
		$variables = array_values($this->getParametersWithoutDefaults());
 
		return call_user_func_array($this->getOption('_call'), $variables);
	}
 
		// We will only call the router callable if no "before" middlewares returned
		// a response. If they do, we will consider that the response to requests
		// so that the request "lifecycle" will be easily halted for filtering.
		$response = $this->callBeforeFilters($request);
 
		if ( ! isset($response))
		{
			$response = $this->callCallable();
		}
 
		// Once we have the route, we can just run it to get the responses, which will
		// always be instances of the Response class. Once we have the responses we
		// will execute the global "after" middlewares to finish off the request.
		else
		{
			$this->currentRoute = $route = $this->findRoute($request);
 
			$response = $route->run($request);
		}
 
		if ($this->isDownForMaintenance())
		{
			$response = $this['events']->until('illuminate.app.down');
 
			if ( ! is_null($response)) return $this->prepareResponse($response, $request);
		}
 
		return $this['router']->dispatch($this->prepareRequest($request));
	}
 
	/**
	 * Handles the given request and delivers the response.
	 *
	 * @return void
	 */
	public function run()
	{
		$response = $this->dispatch($this['request']);
 
		$this['router']->callCloseFilter($this['request'], $response);
| Once we have the application, we can simply call the run method,
| which will execute the request and send the response back to
| the client's browser allowing them to enjoy the creative
| and wonderful applications we have created for them.
|
*/
 
$app->run();
 
/*
Key Value
PHPRC /home/triviums/domains/dev.triviums.lv/fcgi-bin/../etc/php5
SCRIPT_FILENAME /home/triviums/domains/dev.triviums.lv/public_html/index.php
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
PWD /home/triviums/domains/dev.triviums.lv/fcgi-bin
SHLVL 0
PHP_FCGI_MAX_REQUESTS 99999
HTTP_CONNECTION close
SCRIPT_NAME /index.php
REQUEST_URI /en/-apply-form/create/7
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /en/-apply-form/create/7
REMOTE_PORT 37282
SERVER_ADMIN root@localhost
CONTEXT_DOCUMENT_ROOT /home/triviums/domains/dev.triviums.lv/public_html
CONTEXT_PREFIX
REQUEST_SCHEME https
DOCUMENT_ROOT /home/triviums/domains/dev.triviums.lv/public_html
REMOTE_ADDR 35.175.172.94
SERVER_PORT 443
SERVER_ADDR 192.168.11.32
SERVER_NAME triviums.lv
SERVER_SOFTWARE Apache/2.4.6
SERVER_SIGNATURE
HTTP_HOST triviums.lv
HTTP_REFERER http://triviums.lv/en/-apply-form/create/7
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
SSL_TLS_SNI triviums.lv
HTTPS on
SCRIPT_URI https://triviums.lv/en/-apply-form/create/7
SCRIPT_URL /en/-apply-form/create/7
UNIQUE_ID ZgXBF2AcmEvUZRWmrjboMwAAAAI
REDIRECT_STATUS 200
REDIRECT_SSL_TLS_SNI triviums.lv
REDIRECT_HTTPS on
REDIRECT_SCRIPT_URI https://triviums.lv/en/-apply-form/create/7
REDIRECT_SCRIPT_URL /en/-apply-form/create/7
REDIRECT_UNIQUE_ID ZgXBF2AcmEvUZRWmrjboMwAAAAI
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711653143.717
REQUEST_TIME 1711653143
empty
empty
empty
empty
Key Value
_sf2_attributes Array ( [_token] => dGzXtZpgmpidzZWkVUszKXQn8kN6g00khOy3IEUS )
_sf2_flashes Array ( )
_sf2_meta Array ( [u] => 1711653143 [c] => 1711653143 [l] => 7200 )
empty
0. Whoops\Handler\PrettyPageHandler