aurawindsurfing

aurawindsurfing

Member Since 2 Years Ago

Dublin, Ireland

Laravel Newbie at @

Experience Points 117,770
Experience Level 24

2,230 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed 655
Lessons
Completed
Best Reply Awards 68
Best Reply
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • Chatty Cathy Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

02 May
3 weeks ago

aurawindsurfing started a new conversation Filter API Call Is Overwritten By Late Index API Call

Hi All,

There is an issue in Nova with setting up default filters. The issue is documented here: https://github.com/laravel/nova-issues/issues/1129

TL&TR

The default filter is loaded before index API call comes in, this second API call overwrites the filter call and goes back to full index listing.

Does anyone have a solution for that problem? I saw some comments that it has been fixed in 1.3.0 but I'm on the 1.3.2 and the issue is still there.

Thanks!

28 Apr
3 weeks ago
27 Apr
3 weeks ago

aurawindsurfing started a new conversation HTML Debug / X-ray For Laravel/tailwindcss

Hi!

So what people use to debug html /. css while building grids? Is there anything else apart from developer tools and blade x-ray?

Thanks!

19 Apr
1 month ago

aurawindsurfing left a reply on Let User Upload Any Photo Size - Resize Later

@jbloomstrom @jlrdw @cronix

Thanks a lot for all the input. I use Intervention at the moment, obviously have it linked to event makes more sense then directly while user performs an upload.

@cronix this is great example and this is what I have in place now, as you said however you need to constatnly rise it up as mobile devices take bigger and bigger pictures.

I guess Intervention is whay to go, resize image, lower quality and hope for the best outcome.

Have a good day!

18 Apr
1 month ago

aurawindsurfing left a reply on Let User Upload Any Photo Size - Resize Later

Hey guys,

Yes I understand that there must be a limit. So what is the biggest modern mobile phone picture 15MB? Lets put limit to 15MB.

This is not the question however.

The question is: How to make sure picture is only of max certain fileSize before uploading it to S3 and after getting it from the user.

Thanks!

aurawindsurfing left a reply on Using Carbon2

Recently updated my app from 5.4 to 5.5 to 5.6 to 5.7 to 5.8 with shift and had no mention of such possibility.

Also while looking at the docs did not come across it.

aurawindsurfing started a new conversation Let User Upload Any Photo Size - Resize Later

Hey,

I know I can limit user when he is uploading files but I do not want to do that. I had a limit of 6MB per photo, raised it to 9MB not some android phones provide even bigger image files. So, of course, there will be a limit, let's say 15MB per photo max.

When I save this file locally I would like to make sure it is not bigger then let's say 2MB before sending to it DO or S3 storage. What is the best way to approach this? With Intervention, I cannot specify file size so quality + resize is actually hit & miss scenario. What do you guys do usually?

Thanks!

aurawindsurfing left a reply on Images Not Saving To Path When I Update My Database?

@dipakrataniagile sorry but I do not understand your question:

Just am updating the table with new image field and is not storing to the folder

You can not save file or you can not update record in database?

If it is database then you do not have this property set as mass assignable in your model properties. That is why it does not save with update method.

15 Apr
1 month ago

aurawindsurfing left a reply on Images Not Saving To Path When I Update My Database?

Look at the error log. Maybe the directory does not exists or you did not link the storage with php artisan storage:link?

aurawindsurfing left a reply on "It Is Unsafe To Run Dusk In Production." Error When Trying To Deploy

@LEEWILLIS77 - ``` composer install --no-dev


is the right solution here
14 Apr
1 month ago

aurawindsurfing left a reply on Dusk Does Not Execute Button Click & Contenteditable Field Updates Sporadically

Ok wait I see this. Dusk interacts differently with forms then with links. You do not need to use selector at all in here. So all you have to do is:

$browser->press('Next');

More in here: https://laravel.com/docs/5.8/dusk#clicking-links -> scroll to Using Forms.

Hope it helps!

aurawindsurfing left a reply on Dusk Does Not Execute Button Click & Contenteditable Field Updates Sporadically

Just to be on safe side generate the same with: https://laravel-news.com/laravel-testtools-dusk

Maybe you are missing something small in there.

09 Apr
1 month ago

aurawindsurfing left a reply on Config:cache Messing Up Views

Just an array:

'cloudinary_avatar' => [
        'format' => 'jpg',
        'effect' => null,
    ],

the error says it is looking for an array but gets none os here is where I'm bit confused....

aurawindsurfing started a new conversation Config:cache Messing Up Views

Hi All!

I use php artisan config:cache on my production server, for cache I use Redis. I have experienced however a strange error:

When I try to access

config('app.cloudinary_avatar')

in my view it throws an error that it was expecting array. When I do php artisan config:clear the error is gone.

When I cache config again, I get the same error.

Any ideas why is that the case, please?

Thanks!

29 Mar
1 month ago

aurawindsurfing left a reply on Laravel Nova Custom Card Problem

We do use nova ;-)

Try that:

public function withCount()
    {
        $current_user = $this->user_id;
         ...
    }

aurawindsurfing left a reply on Nova License

Developement is developement, you can test as much as you like. You pay when you ship it to the client imho.

aurawindsurfing left a reply on Connect Laravel To Google Drive With API

Quick google and:

https://github.com/nao-pon/flysystem-google-drive

more detailed example here: https://medium.com/@dennissmink/laravel-backup-database-to-your-google-drive-f4728a2b74bd

On the other hand I did not know I can set up google drive as a filesystem!

Happy coding!

aurawindsurfing left a reply on Not Being Able To Send Mails Using Mailgun

Just to be on safe side try:

php artisan config:cache
php artisan cache:clear

That is if you are caching your configs

28 Mar
1 month ago

aurawindsurfing left a reply on How To Deployment Laravel Nova

Sorry is that what you are looking for?

https://nova.laravel.com/docs/1.0/installation.html#installing-nova

Just install it locally via composer and then do composer installon your server

27 Mar
1 month ago

aurawindsurfing left a reply on Email / MX Hosting - What Solutions Do You Use?

Thanks for responses lads! I did not want to go with domain provides and this is very client dependent. Gsuite seems like a bit over the top solution to me tbh. I have tried it 2 times and was just discouraged about the whole process.

I will look at Rackspace tough!

Thx a mil

aurawindsurfing left a reply on Google Maps Not Working

Start dev tools option+cmd+i and check what error you get in console. It is probably there saying you are not allowed to reuse the token or something like that.

aurawindsurfing left a reply on Redirecting URL Problem

Is this laravel question?

aurawindsurfing left a reply on Stripe Webhook Failing

Whats the error?

aurawindsurfing left a reply on How Can I Create A Link To Download / Open The Laravel.log File In My App

php artisan storage:link

This will create a link from public/storage to storage/app/public so you can put your logs there or just create another link that will link directly to your /logs directory. This however is absolutely bad idea !!!

Why do you want public access to everything in your app? If you want to make the logs available to yourself just set up a papertrial for instance and then you will have access without any exposure.

Hope it helps!

aurawindsurfing started a new conversation MX Hosting - What Solutions Do You Use?

Hi!

I currently host my own email solution dovecot, postfix, roundcube

I would like to migrate to a hosted solution. Of course I do not care about roundcube, I can use gmail for checking the emails, that is not a problem. But what do you use to host mailboxes for yourself and for clients, please?

I have found gsuite and zoho but they seem to be bit over the top for me. I want just MX if possible.

Thanks!

20 Mar
2 months ago

aurawindsurfing left a reply on Can I Use Stripe?

@johnnemo did you get set up with Stripe in Greece please?

Sorry for the bump!

16 Mar
2 months ago

aurawindsurfing left a reply on Excluding Algolia Results Based On Dates Values

Seems like not such a good solution to me ;-)

aurawindsurfing left a reply on Laravel In Docker Using Storage Symlink

My guess is that it is not docker related.

browser uses

url('path/to/file)

Mail uses absolute path as you would reference that file in a linux operating system like so:

storage_path('path/to/file)

dd() both examples in both environments and you will see the differences.

Hope it helps!

11 Mar
2 months ago

aurawindsurfing left a reply on Nginx Logs Per Webapp?

@gabotronix but why you want this and need this?

Just create your own log and log everything you need in there. There are few nice bug tracking SaaS services like:

Understand.io Rollbar.com

to name few

aurawindsurfing left a reply on Excluding Algolia Results Based On Dates Values

I think in algolia you can set parameters over which you want to search and their importance.

Then you just do a normal query from Vue or from Eloquent taking in accounts your publish_to date should work without any issue.

Hope it helps!

aurawindsurfing left a reply on Two Laravel Apps On Same Browser

Hmm when you were creating the second app did you just copy the app folder?

If so then you probably have the same key for the app and therefore the same sessions.

Try doing php artisan key:generate

Hope it helps!

02 Mar
2 months ago

aurawindsurfing left a reply on Laravel Redirect To Custom Page Instead Of An Article Using Slug

Two ways I can think of this is:

  1. Encapsulate the route groups in middleware that at the end calls specific controller? But this is probably not the right way to do this.

  2. Make SlugController that groups the slugs and redirects to the correct controller?

There is probably a better way to do this tough.

Hope it helps!

aurawindsurfing left a reply on How To Export Database Table To Excel File In Laravel

@KONRMS - as @jorickl said - first establish if your export works if your form works separately. Just make a test route to controller method and see it the export part works.

01 Mar
2 months ago

aurawindsurfing left a reply on How To Export Database Table To Excel File In Laravel

Hi,

I use this package and it works perfectly.

It seems like you are following some older tutorial. Try to follow this quick start guide: https://docs.laravel-excel.com/3.1/exports/

? Create an export class in app/Exports

You may do this by using the make:export command.

php artisan make:export UsersExport --model=User

The file can be found in app/Exports:

.
├── app
│   ├── Exports
│   │   ├── UsersExport.php
│ 
└── composer.json

If you prefer to create the export manually, you can create the following in app/Exports:

<?php

namespace App\Exports;

use App\User;
use Maatwebsite\Excel\Concerns\FromCollection;

class UsersExport implements FromCollection
{
    public function collection()
    {
        return User::all();
    }
}

? In your controller you can call this export now:

use App\Exports\UsersExport;
use Maatwebsite\Excel\Facades\Excel;
use App\Http\Controllers\Controller;

class UsersController extends Controller 
{
    public function export() 
    {
        return Excel::download(new UsersExport, 'users.xlsx');
    }
}

? Find your users.xlsx in your downloads folder!

Hope it will help you!

26 Feb
2 months ago

aurawindsurfing left a reply on Laravel Nova Multi Guard Auth

Why not login everyone via the same login page and use guards to show hide resources?

25 Feb
2 months ago

aurawindsurfing left a reply on How Do You Handle Notifications/Events

Ok so when you create an Invoice it would be an event, the same goes for deleting it and editing it.

You fire those events and then figure out who to notify about it. Then you create notification classes as needed for each scenario.

aurawindsurfing left a reply on Laravel System Stopped Working After Clear Config And Cache

After composer update did you do composer dump-autoload?

aurawindsurfing left a reply on Store Media Files Outside Laravel Project Folder.

Looks like you do not have permissions to create this directory then:

Impossible to create the root directory

Try creating it by hand on your server and see if that helps for starters.

aurawindsurfing left a reply on How Do You Handle Notifications/Events

Hi @sam

My understanding of Events vs Notifications is:

Event - something significant, like purchase, sell, deletion of a model etc. Notification - insignificant once off action to send an email or text to user or client etc.

Here is a good explanation for it: https://stackoverflow.com/questions/39314809/laravel-broadcasting-notification-vs-event

Hope it helps!

16 Feb
3 months ago

aurawindsurfing left a reply on Authentication

This is normal browser behaviour.

This is not a bug, this is a feature ;-)

aurawindsurfing left a reply on How To Storage Link Laravel Project In Live Server

You need to connect to it via ssh, then run php artisan storage:link from terminal.

11 Feb
3 months ago

aurawindsurfing left a reply on Set Custom Timestamp Column Equal To 0

Ok but why do you need it at 0000-00-00 00:00:00 just leave it blank and check in your code

isset($table->timestamp('delivered_at'));

instead of setting it to incorrect value