Giter Site home page Giter Site logo

spatie / freek.dev Goto Github PK

View Code? Open in Web Editor NEW
597.0 22.0 152.0 32.54 MB

The sourcecode of freek.dev

Home Page: https://freek.dev/on-migrating-my-blog-from-wordpress-to-a-laravel-application

License: MIT License

PHP 75.20% Blade 24.80%
laravel php blog application tailwindcss hacktoberfest

freek.dev's Introduction

We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.

Contributing

Please see CONTRIBUTING for details.

Security

If you've found a bug regarding security please mail [email protected] instead of using the issue tracker.

Postcardware

You're free to use this code (it's MIT-licensed). If you use it to set up your own blog we would highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using.

Our address is: Spatie, Kruikstraat 22, 2018 Antwerp, Belgium.

All postcards are published on our website.

Credits

License

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

freek.dev's People

Contributors

adrianmrn avatar alexvanderbist avatar cristianofromagio avatar dependabot[bot] avatar enzolarosa avatar faabsen avatar freekmurze avatar gummibeer avatar introwit avatar jasonlbeggs avatar krishnahimself avatar laravel-shift avatar larsjanssen6 avatar liambull avatar nielsvanpach avatar nikolaynizruhin avatar nunomaduro avatar plakhin avatar riasvdv avatar robindirksen1 avatar roblui avatar schmidfelix avatar sebastiandedeyne avatar sjorso avatar skoellen avatar thecrypticace avatar thibauddauce avatar vrajroham avatar willemvb avatar wotta 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

freek.dev's Issues

Better post excerpts

Ideally, the excerpt is manually set by a <!--more--> tag. Maybe do this for new posts and keep automatically generated exceprts for old content?

Automatically generated excerpts could be smarter too.

  • Don't cut off half paragraphs, so is never needed
  • Sometimes subtitles are part of the excerpt, so you end up with excerpts like ...foo bar. # Title in between bla bla bla...

Style Ad

The current layout has support for displaying a text based add. I've readded that to the redesign branch. This should be styled.

webmentions & signature error

Hey Freek, I was trying to implement the "How to add webmentions to a Laravel powered blog" but I'm having some issues with the signature validation.

My error is:

Spatie\WebhookClient\Exceptions\WebhookFailed
The signature is invalid.

My callback secret is the same value from webmentions.webhook_secret entry in the
config/services.php

I'm using this code but IDK what's happening

class WebmentionWebhookSignatureValidator implements SignatureValidator

Zoom images

It would be nice to be able to see a bigger version of an image when clicking on it.

SimplePagination template is not applied

You defined a specific look for the simplePagination in murze.be/resources/views/vendor/pagination/simple-default.blade.php. However, it looks like you' re not applying it anywhere. Neither in an service provider as a defaultView nor in the specific view directly. Still, I can remember it worked correctly long time ago.

Cannot read property 'class' of undefined

TypeError

https://flareapp.io/js/app.js

1*  "EXPAND_ALL_VENDOR_FRAMES"})},"Expand vendor frames"))),o.a.createElement("div",{className:"stack-frames"},o.a.createElement("ol",{className:"stack-frames-scroll scrollbar"},l.map((e,t)=>o.a.createElement(H,{key:t,frameGroup:e,onExpand:()=>i({type:"EXPAND_FRAMES",frames:e.frames.map(e=>e.frame_number)}),onSelect:e=>{i({type:"SELECT_FRAME",frame:e}),f(null)}}))))),o.a.createElement("div",{className:"stack-main"},o.a.createElement("div",{className:"stack-main-header"},o.a.createElement(N,{name:c.class,method:c.method}),o.a.createElement("div",{className:"flex items-baseline justify-start"},o.a.createElement(A,{className:"mt-1",path:c.relative_file}),":",c.line_number)),o.a.createElement("div",{className:"stack-main-content"},o.a.createElement(r.Suspense,{fallback:null},o.a.createElement(K,{code:c.code_snippet,highlightedLineNumber:c.line_number,selectedRange:s,onSelectRange:f})))))}function $({data:e,className:t="",renderHeaderRow:n,renderRow:a,EmptyState:i="No results found.",...l}){ret
2   /*
3   object-assign
4   (c) Sindre Sorhus
5   @license MIT

File: https://flareapp.io/js/app.js

Open in Flare

Dump tags

According to analytics tags and tag pages aren't used, let's dump 'm on the public pages.

As I use ImportWp (Help)

As I use ImportWp ("php artisan import: wp"), I ran but the error.

Illuminate \ Database \ QueryException: SQLSTATE [42S02]: Base table or view not found: 1146 Table 'murze.wp_posts' doesn't exist (SQL: select * from `wp_posts` where` post_status` = publish and `post_type` = = post)

, do you have to place the Wordpress tables in the same table as the project? Help!

postSeeder can create only one post, the second one will get error

art db:seed --class=PostSeeder

Illuminate\Database\QueryException : SQLSTATE[HY000]: General error: 1364 Field 'slug' doesn't have a default value (SQL: insert into posts (title, text, publish_date, published, original_content, updated_at, created_at) values (Pariatur et praesentium in molestias dolorem., Itaque asperiores molestiae quia est amet maiores reiciendis. Molestiae labore qui nam commodi a. Ratione autem sint cumque ea et cupiditate dolorem. Voluptatem explicabo corporis totam quia quidem laborum ea., 2014-03-06 20:58:32, 1, 0, 2018-08-26 02:54:32, 2018-08-26 02:54:32))

Images in a blog post

Hi Freek & guys!

I can´t find a way to upload an image to a blog post from Nova admin panel as I can see on any post:

CleanShot 2020-12-21 at 19 14 55

Any help? Is there anything I´m missing?

Thanks guys

This is an exception to test if the integration with Flare works.

Exception

This is an exception to test if the integration with Flare works.

🎯 Facade\Ignition\Commands\TestCommand::sendTestException
📄 /home/forge/freek.dev/releases/20210713-083637/vendor/facade/ignition/src/Commands/TestCommand.php

71      protected function sendTestException()
72      {
73*         $testException = new Exception('This is an exception to test if the integration with Flare works.');
74  
75          try {

Open in Flare

RSS feed code block nesting

@freekmurze Thanks for all your content and contributions to the community!

I’ve been subscribed to the RSS feed for a while and have noticed an issue with code blocks that results in the content being extremely difficult to read in an RSS reader. It doesn’t happen on the web; I think I’ve tracked it down to one of the block renderers here.

Without access to the actual post content, I’m not positive, but I think it may be caused by a combination of fenced and indented code blocks.

Details to reproduce:

<pre>
    <code class="language-php hljs php" data-lang="php">
    <span class="hljs-keyword">use</span> <span class="hljs-title">Spatie</span>\<span class="hljs-title">DataTransferObject</span>\<span class="hljs-title">DataTransferObject</span>; <p>
    <span class="hljs-class">
    <span class="hljs-keyword">class</span> <span class="hljs-title">MyDTO</span> <span class="hljs-keyword">extends</span> <span class="hljs-title">DataTransferObject</span> </span>{ <span class="hljs-keyword">public</span> OtherDTO $otherDTO;</p> <pre>
    <code>&lt;span class=&quot;hljs-keyword&quot;&gt;public&lt;/span&gt; OtherDTOCollection $collection; &lt;span class=&quot;hljs-comment&quot;&gt;#[CastWith(ComplexObjectCaster::class)]&lt;/span&gt; &lt;span class=&quot;hljs-keyword&quot;&gt;public&lt;/span&gt; ComplexObject $complexObject; &lt;span class=&quot;hljs-keyword&quot;&gt;public&lt;/span&gt; ComplexObjectWithCast $complexObjectWithCast; &lt;span class=&quot;hljs-comment&quot;&gt;#[NumberBetween(1, 100)]&lt;/span&gt; &lt;span class=&quot;hljs-keyword&quot;&gt;public&lt;/span&gt; int $a; </code>
</pre>
<p>} </code>
    </pre>

In feedly.com and my iPhone RSS reeder app, code blocks aren’t closed correctly, resulting in following headers, paragraphs, etc. being rendered inside the <pre><code> blocks, eventually resulting in the bottom of the post being several levels deep. See screenshots from Feedly and my phone:

IMG_3102
IMG_3103
IMG_3104
Screen Shot 2021-04-10 at 1 43 09 PM

Set webfonts to production mode

We need to upload the font bundle to the server before going into production. Since the fonts aren't open source, we can't keep them in the repo either. To discuss.

Payments

Hi,

I am learning Laravel and was watching a video on you dashboard. Then found your blog is open source, and has everything I need to read in order to learn how to properly use design patterns and Laravel.
My level is write all in controllers = ).

Came to the point of integrating Stripe into small web app I am making.

Just wanted to confirm so I do not mislead myself.
You intentionally did not finished payments or am I missing something?

Regards and thanks for the two examples (Dashboard and murze) from which everyone can learn.

Target class [bindings] does not exist.

Illuminate\Contracts\Container\BindingResolutionException

Illuminate\Container\Container::build

833               $reflector = new ReflectionClass($concrete);
834           } catch (ReflectionException $e) {
835*              throw new BindingResolutionException("Target class [$concrete] does not exist.", 0, $e);
836           }
837   

File: /home/forge/freek.dev/releases/20210414-142649/vendor/laravel/framework/src/Illuminate/Container/Container.php

Open in Flare

Trying to get my own instance going with valet, nova license and get a github error

So I am trying to follow along with your website to get my own online, I've gone through these steps to serve it locally:

  1. clone the repo
  2. Start a new project with composer global require "laravel/installer" then laravel new site
  3. cp -R all of the murz.be files to my new site cp -R ../murz.be .
  4. overwrite: "repositories" in composer.json
{
        "type": "composer",
        "url": "https://nova.laravel.com"
  }
  1. overwrite "require" in composer.json:
"laravel/nova": "*",
  1. I ran composer clear-cache then composer update but I already copied my github token before I realized I needed to purchase nova, so I did. But now when I run composer update I get:
[Composer\Downloader\TransportException]                
  The "https://api.github.com/repos/laravel/nova" file c  
  ould not be downloaded (HTTP/1.1 404 Not Found)  

Any ideas why I could be getting this error?

c is undefined

TypeError

https://flareapp.io/js/app.js

1*  ({type:"EXPAND_ALL_VENDOR_FRAMES"})},"Expand vendor frames"))),o.a.createElement("div",{className:"stack-frames"},o.a.createElement("ol",{className:"stack-frames-scroll scrollbar"},l.map((e,t)=>o.a.createElement(H,{key:t,frameGroup:e,onExpand:()=>i({type:"EXPAND_FRAMES",frames:e.frames.map(e=>e.frame_number)}),onSelect:e=>{i({type:"SELECT_FRAME",frame:e}),f(null)}}))))),o.a.createElement("div",{className:"stack-main"},o.a.createElement("div",{className:"stack-main-header"},o.a.createElement(N,{name:c.class,method:c.method}),o.a.createElement("div",{className:"flex items-baseline justify-start"},o.a.createElement(A,{className:"mt-1",path:c.relative_file}),":",c.line_number)),o.a.createElement("div",{className:"stack-main-content"},o.a.createElement(r.Suspense,{fallback:null},o.a.createElement(K,{code:c.code_snippet,highlightedLineNumber:c.line_number,selectedRange:s,onSelectRange:f})))))}function $({data:e,className:t="",renderHeaderRow:n,renderRow:a,EmptyState:i="No results found.",...
2   /*
3   object-assign
4   (c) Sindre Sorhus
5   @license MIT

File: https://flareapp.io/js/app.js

Open in Flare

FilesystemIterator::__construct(/home/forge/freek.dev/releases/20221019-094421/storage/framework/cac...

UnexpectedValueException

FilesystemIterator::__construct(/home/forge/freek.dev/releases/20221019-094421/storage/framework/cache/data/8d/c4): Failed to open directory: No such file or directory

🎯 FilesystemIterator::__construct
📄 /home/forge/freek.dev/releases/20221019-094421/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php

712          }
713  
714*         $items = new FilesystemIterator($directory);
715  
716          foreach ($items as $item) {

Open in Flare

Use real ad in sidebar

Currently uses a carbonDummy partial. This should be a real Carbon add. Might need addional layout.

Talks page

Create a talks page with video thumbnails.

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.