Code Monkey home page Code Monkey logo

docs.spatie.be-old's Introduction

Spatie package documentation

This repository contains the documentation of several spatie packages. The application is automatically deployed to https://docs.spatie.be

Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

About Spatie

Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.

License

The MIT License (MIT). Please see License File for more information.

docs.spatie.be-old's People

Contributors

alexvanderbist avatar bartlettc avatar blueclock avatar bmichotte avatar brendt avatar browner12 avatar chrisrenga avatar driesvints avatar fgilio avatar freekmurze avatar frizikk avatar gauravmak avatar gummibeer avatar introwit avatar jasperbeaurain avatar joepriest avatar jorenvanhee avatar jrebs avatar juukie avatar laravel-shift avatar lasserafn avatar martincamen avatar mikemnd avatar omranic avatar randohinn avatar renedekat avatar sebastiandedeyne avatar trigur avatar tylercd100 avatar willemvb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docs.spatie.be-old's Issues

No Spatie\MediaLibrary\HasMedia\Interfaces

Hi, thank you for creating nice documentation

upgraded from version 6.0.0

There is no Spatie\MediaLibrary\HasMedia\Interfaces
use Spatie\MediaLibrary\HasMedia\Interfaces\HasMedia;

installation on fresh laravel fails

"PHP " : "7.2.8",
"laravel/framework": "5.8.*",

composer require spatie/laravel-server-monitor:^1.0
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Conclusion: remove symfony/console v4.2.5
- Conclusion: don't install symfony/console v4.2.5
- symfony/process 3.2.x-dev conflicts with symfony/console[v4.2.5].
- symfony/process v3.2.0 conflicts with symfony/console[v4.2.5].
- symfony/process v3.2.0-BETA1 conflicts with symfony/console[v4.2.5].
- symfony/process v3.2.0-RC1 conflicts with symfony/console[v4.2.5].
- symfony/process v3.2.0-RC2 conflicts with symfony/console[v4.2.5].
- symfony/process v3.2.1 conflicts with symfony/console[v4.2.5].
- symfony/process v3.2.10 conflicts with symfony/console[v4.2.5].
- symfony/process v3.2.11 conflicts with symfony/console[v4.2.5].
- symfony/process v3.2.12 conflicts with symfony/console[v4.2.5].
- symfony/process v3.2.13 conflicts with symfony/console[v4.2.5].
- symfony/process v3.2.14 conflicts with symfony/console[v4.2.5].
- symfony/process v3.2.2 conflicts with symfony/console[v4.2.5].
- symfony/process v3.2.3 conflicts with symfony/console[v4.2.5].
- symfony/process v3.2.4 conflicts with symfony/console[v4.2.5].
- symfony/process v3.2.5 conflicts with symfony/console[v4.2.5].
- symfony/process v3.2.6 conflicts with symfony/console[v4.2.5].
- symfony/process v3.2.7 conflicts with symfony/console[v4.2.5].
- symfony/process v3.2.8 conflicts with symfony/console[v4.2.5].
- symfony/process v3.2.9 conflicts with symfony/console[v4.2.5].
- Installation request for symfony/console (locked at v4.2.5) -> satisfiable by symfony/console[v4.2.5].
- Installation request for spatie/laravel-server-monitor 1.0 -> satisfiable by spatie/laravel-server-monitor[1.0.0].
- Conclusion: don't install symfony/process v4.2.5|install symfony/process 3.2.x-dev|install symfony/process v3.2.0|install symfony/process v3.2.0-BETA1|install symfony/process v3.2.0-RC1|install symfony/process v3.2.0-RC2|install symfony/process v3.2.1|install symfony/process v3.2.10|install symfony/process v3.2.11|install symfony/process v3.2.12|install symfony/process v3.2.13|install symfony/process v3.2.14|install symfony/process v3.2.2|install symfony/process v3.2.3|install symfony/process v3.2.4|install symfony/process v3.2.5|install symfony/process v3.2.6|install symfony/process v3.2.7|install symfony/process v3.2.8|install symfony/process v3.2.9
- Conclusion: remove symfony/process v4.2.5|install symfony/process 3.2.x-dev|install symfony/process v3.2.0|install symfony/process v3.2.0-BETA1|install symfony/process v3.2.0-RC1|install symfony/process v3.2.0-RC2|install symfony/process v3.2.1|install symfony/process v3.2.10|install symfony/process v3.2.11|install symfony/process v3.2.12|install symfony/process v3.2.13|install symfony/process v3.2.14|install symfony/process v3.2.2|install symfony/process v3.2.3|install symfony/process v3.2.4|install symfony/process v3.2.5|install symfony/process v3.2.6|install symfony/process v3.2.7|install symfony/process v3.2.8|install symfony/process v3.2.9
- spatie/laravel-server-monitor 1.0.0 requires symfony/process ^3.2 -> satisfiable by symfony/process[3.2.x-dev, 3.3.x-dev, 3.4.x-dev, v3.2.0, v3.2.0-BETA1, v3.2.0-RC1, v3.2.0-RC2, v3.2.1, v3.2.10, v3.2.11, v3.2.12, v3.2.13, v3.2.14, v3.2.2, v3.2.3, v3.2.4, v3.2.5, v3.2.6, v3.2.7, v3.2.8, v3.2.9, v3.3.0, v3.3.0-BETA1, v3.3.0-RC1, v3.3.1, v3.3.10, v3.3.11, v3.3.12, v3.3.13, v3.3.14, v3.3.15, v3.3.16, v3.3.17, v3.3.18, v3.3.2, v3.3.3, v3.3.4, v3.3.5, v3.3.6, v3.3.7, v3.3.8, v3.3.9, v3.4.0, v3.4.0-BETA1, v3.4.0-BETA2, v3.4.0-BETA3, v3.4.0-BETA4, v3.4.0-RC1, v3.4.0-RC2, v3.4.1, v3.4.10, v3.4.11, v3.4.12, v3.4.13, v3.4.14, v3.4.15, v3.4.16, v3.4.17, v3.4.18, v3.4.19, v3.4.2, v3.4.20, v3.4.21, v3.4.22, v3.4.23, v3.4.24, v3.4.3, v3.4.4, v3.4.5, v3.4.6, v3.4.7, v3.4.8, v3.4.9].
- Can only install one of: symfony/process[3.3.x-dev, v4.2.5].
- Can only install one of: symfony/process[3.4.x-dev, v4.2.5].
- Can only install one of: symfony/process[v3.3.0, v4.2.5].
- Can only install one of: symfony/process[v3.3.0-BETA1, v4.2.5].
- Can only install one of: symfony/process[v3.3.0-RC1, v4.2.5].
- Can only install one of: symfony/process[v3.3.1, v4.2.5].
- Can only install one of: symfony/process[v3.3.10, v4.2.5].
- Can only install one of: symfony/process[v3.3.11, v4.2.5].
- Can only install one of: symfony/process[v3.3.12, v4.2.5].
- Can only install one of: symfony/process[v3.3.13, v4.2.5].
- Can only install one of: symfony/process[v3.3.14, v4.2.5].
- Can only install one of: symfony/process[v3.3.15, v4.2.5].
- Can only install one of: symfony/process[v3.3.16, v4.2.5].
- Can only install one of: symfony/process[v3.3.17, v4.2.5].
- Can only install one of: symfony/process[v3.3.18, v4.2.5].
- Can only install one of: symfony/process[v3.3.2, v4.2.5].
- Can only install one of: symfony/process[v3.3.3, v4.2.5].
- Can only install one of: symfony/process[v3.3.4, v4.2.5].
- Can only install one of: symfony/process[v3.3.5, v4.2.5].
- Can only install one of: symfony/process[v3.3.6, v4.2.5].
- Can only install one of: symfony/process[v3.3.7, v4.2.5].
- Can only install one of: symfony/process[v3.3.8, v4.2.5].
- Can only install one of: symfony/process[v3.3.9, v4.2.5].
- Can only install one of: symfony/process[v3.4.0, v4.2.5].
- Can only install one of: symfony/process[v3.4.0-BETA1, v4.2.5].
- Can only install one of: symfony/process[v3.4.0-BETA2, v4.2.5].
- Can only install one of: symfony/process[v3.4.0-BETA3, v4.2.5].
- Can only install one of: symfony/process[v3.4.0-BETA4, v4.2.5].
- Can only install one of: symfony/process[v3.4.0-RC1, v4.2.5].
- Can only install one of: symfony/process[v3.4.0-RC2, v4.2.5].
- Can only install one of: symfony/process[v3.4.1, v4.2.5].
- Can only install one of: symfony/process[v3.4.10, v4.2.5].
- Can only install one of: symfony/process[v3.4.11, v4.2.5].
- Can only install one of: symfony/process[v3.4.12, v4.2.5].
- Can only install one of: symfony/process[v3.4.13, v4.2.5].
- Can only install one of: symfony/process[v3.4.14, v4.2.5].
- Can only install one of: symfony/process[v3.4.15, v4.2.5].
- Can only install one of: symfony/process[v3.4.16, v4.2.5].
- Can only install one of: symfony/process[v3.4.17, v4.2.5].
- Can only install one of: symfony/process[v3.4.18, v4.2.5].
- Can only install one of: symfony/process[v3.4.19, v4.2.5].
- Can only install one of: symfony/process[v3.4.2, v4.2.5].
- Can only install one of: symfony/process[v3.4.20, v4.2.5].
- Can only install one of: symfony/process[v3.4.21, v4.2.5].
- Can only install one of: symfony/process[v3.4.22, v4.2.5].
- Can only install one of: symfony/process[v3.4.23, v4.2.5].
- Can only install one of: symfony/process[v3.4.24, v4.2.5].
- Can only install one of: symfony/process[v3.4.3, v4.2.5].
- Can only install one of: symfony/process[v3.4.4, v4.2.5].
- Can only install one of: symfony/process[v3.4.5, v4.2.5].
- Can only install one of: symfony/process[v3.4.6, v4.2.5].
- Can only install one of: symfony/process[v3.4.7, v4.2.5].
- Can only install one of: symfony/process[v3.4.8, v4.2.5].
- Can only install one of: symfony/process[v3.4.9, v4.2.5].
- Installation request for symfony/process (locked at v4.2.5) -> satisfiable by symfony/process[v4.2.5].

Installation failed, reverting ./composer.json to its original content.

solved removing version ^1.0 from composer require string

'Writing your first projector' example doesnt work without StreamEventsBy() on projector

Hey Freek,

Awesome package.

I followed through the Writing your first Projector example. And consistently got the error:

"Return value of App\Account::createWithAttributes() must be an instance of App\Account, null returned"

whilst trying to create a new Account record.

Tracking the issue I could see that:

  • stored_events was being populated OK
  • projector_statuses was set as has_received_all_events = 0 (false)
  • no account was being created

The event was firing fine but something was causing a null return in the projector.

However, at the same time I downloaded the example project and that worked fine. So I went through and compared line by line.

As soon as I added

   public function streamEventsBy()
    {
       return 'accountUuid';
    } 

to my projector, the example worked and I could create accounts as per the example.

I am not sure if I missed something in the example, in how the package can work without streamEventsby(). I read the Using event streams page and it seemed to suggest this was something additional rather than required?

Anyway, posting here in case anybody else has the same issue whilst following the example.

Luke

Add a note explaining the differences between Model implementations

Browsing the documentation I noticed that you have two different interfaces available to apply, but there is no place pointing out the difference.

Without conversions

use Spatie\MediaLibrary\HasMedia\HasMediaTrait;
use Spatie\MediaLibrary\HasMedia\Interfaces\HasMedia;

class NewsItem extends Model implements HasMedia
{
    use HasMediaTrait;

Using conversions

use Spatie\MediaLibrary\HasMedia\HasMediaTrait;
use Spatie\MediaLibrary\HasMedia\Interfaces\HasMediaConversions;

class NewsItem extends Model implements HasMediaConversions
{
    use HasMediaTrait;

    public function registerMediaConversions()
    {
        $this->addMediaConversion('thumb')
             ->setManipulations(['w' => 368, 'h' => 232])
             ->performOnCollections('images');
    }

Maybe even in the preparing-your-model section, just point out that if you plan on using conversions, that you should read the alternate page at converting-images/defining-conversions.

Thinking in events "broke mail sent"

With this in place only a projector will save state. The BrokeReactor will only send out a mail when an account goes broke. No mails will be sent if the account was already broke. When the account goes above zero and goes broke again a new mail will be sent. When replaying all events, no mail will get sent, but all account state will be correct.

Is this correct when you rebuild the account? When deleting an account and replaying all events that end up with a negative balance the broke_mail_sent bool will be false, assuming that's the default value. Reactors aren't called after all and thus the the bool value will never be set to true.

Notes about MediaHasBeenAdded event

I needed to add custom propeties after the media has been saved, and i find that the method $media->getMedia() from the example does not exists instead i used $media->media.

Alsoe to persiste the properties to DB after calling $media->setCustomPropery() i needed to do $media->save()

I think it's nice to point to this in the doc.

404 on Overriding default filesystem behaviour

Hello guys, please take a look when you have a time
Alt text

I'm also wondering, is there any possibility to resize/crop a particular file on the fly before/after adding to a media collection?

Something like

$media = $model->addMedia($request->file('form_files.0'))
    ->crop($request->left, $request->top, $request->width, $request->height)
    ->toMediaCollection('avatars', 'avatar')
;

(Sorry I should have to ask it separately probably)

Link class not found in example code

On the menu example page on the introduction document, there is a sample showing ->add(Link::to(x, y)) syntax as an alternative to ->link(x, y). When I try to use the former in a blade PHP template (within {{ }}), I get an error that the Link class is not found (I am using a "laravel new app" application and did require spatie/menu and spatie/laravel-menu. If I explicitly call it with ->add(Spatie\Menu\Link::to(x, y)), then it works.

Am I doing something wrong that this namespace isn't present automatically? Is this expected? Or outdated doc?

Activitylog docs need a color scheme

A new package called laravel-activitylog will be released soon. The extensive docs will be published on this site. I've already set up one page based on the medialib layout.

Could you make a new colorscheme for the docs of this package?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.