_stefanzweifel

Experience

19,295

1 Best Reply Awards

  • Member Since 2 Years Ago
  • 361 Lessons Completed
  • 64 Favorites

22nd March, 2016

_stefanzweifel left a reply on Mandrill To Sparkpost? • 1 year ago

I would suggest using the SMTP Credentials. So you just grab the SMTP Infos from Sparkpost (account required), and paste them in your Laravel Application. Done.

25th February, 2016

_stefanzweifel left a reply on More Vue, Less Blade • 1 year ago

I personally use $with with great care. My project at works handles a TON of data. Eloquent would have to search 1-5 relations in a table with 500k rows. This can get really slow ...

If you're app is smaller, I would say it's a great starting point.

17th September, 2015

_stefanzweifel left a reply on Class 'App\Http\Controllers\Spatie\Browsershot\Browsershot' Not Found • 2 years ago

Happy I could help @lucasvrm. But could you please remove your API key from your recent post? API keys should be like passwords and never posted in public. Thank you :)

28th June, 2015

_stefanzweifel left a reply on Install Vue.js Via Npm And Use It • 2 years ago

@bart Indeed. It get's more confusing every day :(

27th June, 2015

_stefanzweifel left a reply on Install Vue.js Via Npm And Use It • 2 years ago

I just installed Vue in a new project.

I created a new file resources/assets/js/app.js and in there I require Vue like so:

var Vue = require('vue');

In my gulpfile.js I added this mix:

mix.browserify('app.js');

Browserify will then search the Vue.js source on it's own and inject it in the final file.

_stefanzweifel left a reply on What Is The Best Way To Update One Field With Rows Resulting 15k? • 2 years ago

You can use chunk() for that. Quick example from the docs:

User::chunk(200, function($users)
{
    foreach ($users as $user)
    {
        // Execute the row update here
    }
});

Or if all 15k rows should update with the same value:

Model::whereIn('id', $arrayOfIds)->update(['field' => $value]);

```

18th March, 2015

_stefanzweifel left a reply on Question L5 Bower • 2 years ago

For styles() and scripts() you could also specify the root folder. I've written about this approach here.

mix.scripts([
    'vendor/package-name/package.js',
    'vendor/antoher-package-name/another-package.js',
    'js/app.js',
], 'public/app.js', 'resources/');

_stefanzweifel left a reply on Question L5 Bower • 2 years ago

You can add a .bowerrc file in the root of your project with the following content:

{
    "directory": "resources/vendor"
}

resources/vendor is then your new bower_components folder.

18th February, 2015

_stefanzweifel left a reply on Log Database For Updated And Deleted File • 2 years ago

So you mean something like a "Revision"? If you're still on Laravel 4 I can recommend Venturecraft/revisionable. Pretty easy to setup and works great!

19th January, 2015

_stefanzweifel left a reply on Grab Screenshots From Websites / App I Wrote • 2 years ago

@bashy In current version: no. The screenshot is created through PhantomJS. So Screeenly doesn't have your login cookies. But this could be a feature in the distant future... But honestly, I don't have any idea how you could accomplish the login flow in PhantomJS.

_stefanzweifel left a reply on Grab Screenshots From Websites / App I Wrote • 2 years ago

@MThomas On my bucket list! Will add this in the upcoming days.

_stefanzweifel left a reply on Grab Screenshots From Websites / App I Wrote • 2 years ago

@bashy @Graham I think when Droplr changed their plans the last time, they also killed the API.

Screeenly and Droplr can not be compared together. Droplr is a client-software and lives in your menubar. Screeenly on the other side is just a API endpoint you can call in your own applications. If you use the screeenly-client Package you can do something like this:

php
$screenshot = Screenshot::capture('https://laracasts.com');
$path = $screenshot->store('path/where/you/store/images');

This can be handy if you have a dashboard of pages you created (like a portfolio or a company internal application). Maybe the punchline on the landingpage is a bit unclear. Will probably change that to something more descriptive.

_stefanzweifel left a reply on Grab Screenshots From Websites / App I Wrote • 2 years ago

@bashy Didn't know Droplr can do that. Will test it out.

18th January, 2015

_stefanzweifel started a new conversation Grab Screenshots From Websites / App I Wrote • 2 years ago

Hi folks

I don't know if this forum is the right place, but I would like to share a Laravel application I recently built.

Screeenly helps you create screenshots from websites, so you can use them in your own application. Thanks to Jeffrey I learned a ton about PHP and OOP and I used Screeenly as a learning project to apply some of the techniques and patterns. It's for sure not THE best code of mine, but when Laravel 5 will be released, I will probably rebuilt the application, so I can use all the new awesome L5 stuff. I open sourced it because I didn't find nearly no Laravel application on Github and I wanted to share, how I structure my code. Maybe this is a inspiration to others ;)

There is also a composer package which works great with Laravel 4, so you don't have to struggle with the API itself. Maybe this is something for you.

Feedback is always appreciated :)

Have a nice sunday :) Stefan

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.