Skip to content
#

mvc

The term MVC stands for Model-View-Controller. MVC is a software design pattern that separates an application's logic according to responsibilities: the model manages the application's data structure, the view manages how information is represented in the user interface, and the controller accepts input and dispatches commands to the model and the view.

Here are 6,740 public repositories matching this topic...

interludic
interludic commented Oct 31, 2018
  • Corcel Version: "jgrossi/corcel": "2.5.*",

  • Framework Name & Version: "laravel/framework": "5.5.*",

  • PHP Version: 7.1

Description:

Cant find model... for

// clean and simple all posts from a category
$cat = Category::slug('uncategorized')->posts->first();
$cat->posts->each(function($post) {
echo $post->post_title;
});

kraih
kraih commented May 20, 2020

Not a particularly hard task, but converting all tests is a lot of work. We want to go from:

# Promisify
is ref Mojo::Promise->resolve('foo'), 'Mojo::Promise', 'right class';
$promise = Mojo::Promise->reject('foo');
is ref $promise, 'Mojo::Promise', 'right class';
@errors = ();
$promise->catch(sub { push @errors, @_ })->wait;
is_deeply \@errors, ['foo'], 'promise rejected';
$promi
ihp
Wikipedia
Wikipedia