culttt / cribbb Goto Github PK
View Code? Open in Web Editor NEWHome Page: http://cribbb.com
Home Page: http://cribbb.com
I've been searching for a class loader here in your package but i haven't found it.
How do you load your packages inside Laravel?
Thanks!
I see that this is an old repository, 5 years since the last update.
But I'm trying to follow the tutorials: https://culttt.com/2014/10/20/creating-user-registration-domain-service/
And I can't find any of the files or folders that should be on the repository.
In the composer.json there is a repository https://github.com/philipbrown/laravel-doctrine but it is not available.
Hey,
I have been following your tutorials for some time and was hoping you would put your old code up so I can reference it. I am trying to find AbstractRepository.php to see how that worked.
John
https://github.com/yellowflag/cribbb/blob/master/app/Domain/Model/Groups/Group.php#L152
Can you explain why you'd add members on the model rather then in the repository. If you swapped out the model implementation for another implementation then it may not have the ability to do that nicely.
Unless you're not catering for different implementations.
Thanks.
It would be nice if you could create a version splitting the code between laravel 4 and laravel 5. It would benefit both developers using L4 as the ones migrating to L5.
PS: thank you for publishing this and all your tutorials. Thank you!
Best regards.
Philip,,
You're not resolving your dependencies using a service provider. How are they resolved if they are?
If you're not using the IoC, how are you resolving and implementing the interfaces? Am I missing something?
Hi there,
When using the phpunit test I get the following error:
PHP Fatal error: Call to undefined method Cribbb\Repositories\Invite\EloquentInviteRepository::getBy() in /app/Cribbb/Inviters/Requester.php on line 58
Any ideas?
Cheers
find() , all() returning an instance of model . in controller still coupled to the Model Class. so should change different object?
controller:
//get a record from repository
$user = Repository::find(1);
// if execute save(), it will call repository which binding eloquent
$user->save()
if i replace Eloquent model to fluent
i pretend fluent model dont have save method,it should not work perfect if i need to change other model right?
any suggestion ?
thanks
this is a post controller copy from https://github.com/BootstrapCMS/CMS
$post = PostRepository::find($id);
$this->checkPost($post);
$post->update($input);
When you are trying to create an account and for example introduce an error on the registration form (invalid email) the code will redirect you to register.index
and because we are not using the code
stored on the session we will get and 404 error
, the code should be something like this:
...
$repository = App::make('Logbook\Repositories\Invite\InviteRepositoryInterface');
$code = Input::has('code') ? Input::get('code') : Session::get('invitation_code');
if (! $repository->getValidInviteByCode($code))
{
App::abort(404);
}
...
Instead of this:
$repository = App::make('Logbook\Repositories\Invite\InviteRepositoryInterface');
if (! $repository->getValidInviteByCode(Input::get('code')))
{
App::abort(404);
}
Thanks,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.