rabeea

rabeea

Member Since 1 Year Ago

Experience Points
2,450
Total
Experience

2,550 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
11
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-in-session Created with Sketch.

    School In Session

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

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

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

  • subscriber Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist Created with Sketch.

    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 Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

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

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

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

Level 1
2,450 XP
Oct
29
2 days ago
Activity icon

Replied to How To Implement Reset Password Via Code ?

@snapey Yeah I'm using Laravel/UI, but there is no way to send code to email then check on this code if it's right or not! like Apple company reset the password when they send code contains five or six numbers! that's what I want

Activity icon

Started a new Conversation How To Implement Reset Password Via Code ?

Is there any blog post or tutorial to make reset password via code? like when the user sends his email just generate new (32452) and send the code to email then use code to open the page that. he can reset the password!

Oct
27
4 days ago
Activity icon

Started a new Conversation Laravel Sessions Database Table Filling Up With User_agent ELB-HealthChecker/2.0

I just deploy my Laravel app production environment to run on EB(elastic beanstalk) It's all working great except I'm seeing the sessions table filling up with thousands of ELB health checks with user_agent "ELB-HealthChecker/2.0". Laravel/PHP apparently sees each health check as a new user and generates a new session, one every 30 seconds from each instance. This could get out of hand real quick and would not be sustainable.

Is there a method in Laravel to ignore or refuse requests from specific user_agents so they don't start a session?

Oct
22
1 week ago
Activity icon

Started a new Conversation Send Error Validation To Mail Via Queue Laravel Excel?

I'm using Laravel-Excel package, and my import class is via a queue, so I need to send an error message to mail like validation error and etc

There is a section for error if the queue failed:

https://docs.laravel-excel.com/3.1/imports/queued.html#handling-failures-in-queued-imports

public function registerEvents(): array
{
    return [
        ImportFailed::class => function(ImportFailed $event) {

            dd($event); // this show a big thing! I need to send the errors to the mail!

            $this->importedBy->notify(new ImportHasFailedNotification);
        },
    ];
}

How can I send just error message to mail!

Oct
20
1 week ago
Activity icon

Replied to Exception\NotFoundHttpException Error ?

@s4muel @lacasera

Here is the full error:

Symfony\Component\HttpKernel\Exception\NotFoundHttpException in /var/app/current/vendor/laravel/framework/src/Illuminate/Routing/AbstractRouteCollection.php:43
Stack trace:
#0 /var/app/current/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php(162): Illuminate\Routing\AbstractRouteCollection->handleMatchedRoute(Object(Illuminate\Http\Request), NULL)
#1 /var/app/current/vendor/laravel/framework/src/Illuminate/Routing/Router.php(639): Illuminate\Routing\RouteCollection->match(Object(Illuminate\Http\Request))
#2 /var/app/current/vendor/laravel/framework/src/Illuminate/Routing/Router.php(628): Illuminate\Routing\Router->findRoute(Object(Illuminate\Http\Request))
#3 /var/app/current/vendor/laravel/framework/src/Illuminate/Routing/Router.php(617): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#4 /var/app/current/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#5 /var/app/current/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#6 /var/app/current/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php(60): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#7 /var/app/current/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Barryvdh\Debugbar\Middleware\InjectDebugbar->handle(Object(Illuminate\Http\Request), Object(Closure))
#8 /var/app/current/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#9 /var/app/current/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#10 /var/app/current/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#11 /var/app/current/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#12 /var/app/current/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#13 /var/app/current/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#14 /var/app/current/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(63): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#15 /var/app/current/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
#16 /var/app/current/vendor/fruitcake/laravel-cors/src/HandleCors.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#17 /var/app/current/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Fruitcake\Cors\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#18 /var/app/current/vendor/fideloper/proxy/src/TrustProxies.php(57): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#19 /var/app/current/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Fideloper\Proxy\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#20 /var/app/current/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#21 /var/app/current/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(140): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#22 /var/app/current/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(109): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#23 /var/app/current/public/index.php(55): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#24 {main}
Activity icon

Started a new Conversation Exception\NotFoundHttpException Error ?

I just deployed my Laravel app on AWS and link SSL Certificate and all things are good with everything!

In my app, I just link my logs app via a slack channel to send any error logs to it!

The weird thing when I visit any URL on the website I got this error in the slack channel:

Symfony\Component\HttpKernel\Exception\NotFoundHttpException in 
/var/app/current/vendor/laravel/framework/src/Illuminate/Routing/AbstractRouteCollection.php:43

Stack trace:
#0 /var/app/current/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php(162):
Illuminate\Routing\AbstractRouteCollection->handleMatchedRoute(Object(Illuminate\Http\Request), NULL)

Some info:

I'm using AWS EB Linux 2, PHP 7.4 running on 64bit Amazon Linux 2/3.1.2 ) of course Nginx!

And I deploy my app via code commit and Pipeline to EB directly.

What I did from my search on google:

  • I thought it's because of some / in Route and check all my route and remove the /! but still, I got the same error!

  • I thought it's because of SSL some route still sending HTTP not HTTPS, so I just create a file in this path to just convert every HTTP request to https one.

.platform/niginx/conf.d/elasticbeanstalk/https.conf

# HTTP to HTTPS

if ($http_x_forwarded_proto = 'http') {
  return 301 https://$host$request_uri;
}

Also Still got the same error!

  • The last one I read it's maybe because of some file in the network get 404! and I just check the network section and get just one file which favicon.ico, fixes this but still getting the same error :(

What else guys ?! :(

Oct
18
1 week ago
Activity icon

Started a new Conversation Run Migrations Through .ebextensions File?

I have a file in .ebextensions folder 01_deploy.config :

option_settings:
  # Set here your php.ini `memory_limit` value.
  - namespace: aws:elasticbeanstalk:container:php:phpini
    option_name: memory_limit
    value: 256M

container_commands:
  01_install_composer_dependencies:
    command: "sudo php -d memory_limit=-1 /usr/bin/composer.phar install --no-dev --no-interaction --prefer-dist --optimize-autoloader"
    cwd: "/var/app/staging"

  02_install_node_dependencies:
    command: "sudo npm install"
    cwd: "/var/app/staging"

  03_build_node_assets:
    command: "sudo npm run prod"
    cwd: "/var/app/staging"

  04_link_storage_folder:
    command: "php artisan storage:link"
    cwd: "/var/app/staging"

  05_run_migrations:
    command: "php artisan migrate --force"
    cwd: "/var/app/staging"

When I deploy the project I got this error in /var/log/cfn-init.log

2020-10-18 11:47:40,777 [INFO] Command 04_link_storage_folder succeeded
2020-10-18 11:47:41,188 [ERROR] Command 05_run_migrations (php artisan migrate --force) failed
2020-10-18 11:47:41,189 [ERROR] Error encountered during build of postbuild_0_asu_n: Command 05_run_migrations fail$
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/cfnbootstrap/construction.py", line 542, in run_config
    CloudFormationCarpenter(config, self._auth_config).build(worklog)
  File "/usr/lib/python2.7/site-packages/cfnbootstrap/construction.py", line 260, in build
    changes['commands'] = CommandTool().apply(self._config.commands)
  File "/usr/lib/python2.7/site-packages/cfnbootstrap/command_tool.py", line 117, in apply
    raise ToolError(u"Command %s failed" % name)
ToolError: Command 05_run_migrations failed
Oct
17
2 weeks ago
Activity icon

Started a new Conversation Error To Install Composer On AWS

I'm trying to deploy the Laravel app to AWS EB via Pipeline when I deploy the app I got this error in log EB

2020/10/18 00:43:08.443797 [INFO] Executing instruction: Install composer dependencies
2020/10/18 00:43:08.443819 [INFO] installing composer dependencies...
2020/10/18 00:43:08.443859 [INFO] Running command /bin/sh -c composer.phar install --no-ansi --no-interaction 
2020/10/18 00:43:08.482582 [ERROR] An error occurred during execution of command [app-deploy] - [Install composer dependencies]. Stop running the command. Error: installing composer dependencies failed with error: Command /bin/sh -c composer.phar install --no-ansi --no-interaction  failed with error exit status 254. Stderr:Sun Oct 18 00:43:08 2020 (12045): Fatal Error Insufficient shared memory!

I have file called 01_deploy.config in .ebextensions/01_deploy.config conatins this:

option_settings:
  # Point the app root to the public/ folder.
  - namespace: aws:elasticbeanstalk:container:php:phpini
    option_name: document_root
    value: /public

  # Set here your php.ini `memory_limit` value.
  - namespace: aws:elasticbeanstalk:container:php:phpini
    option_name: memory_limit
    value: 256M

container_commands:
  01_install_composer_dependencies:
    command: "sudo php /usr/bin/composer.phar install --no-dev --no-interaction --prefer-dist --optimize-autoloader"
    cwd: "/var/app/current"

  02_install_node_dependencies:
    command: "sudo npm install"
    cwd: "/var/app/current"

  03_build_node_assets:
    command: "sudo npm run prod"
    cwd: "/var/app/current"

  04_link_storage_folder:
    command: "php artisan storage:link"
    cwd: "/var/app/current"

  05_run_migrations:
    command: "php artisan migrate --force"
    cwd: "/var/app/current"
    leader_only: true

Where is the problem ?

Activity icon

Started a new Conversation How To Install Supervisor In AWS EB Via .ebextension?

Does anyone have the file inside .ebextension that install and run supervisor on AWS EB

I'm using :

PHP 7.3 running on 64bit Amazon Linux | apache

Oct
12
2 weeks ago
Activity icon

Started a new Conversation How To Upload Image With Livewire?

in Livewire config:

'temporary_file_upload' => [
    'disk' => 'public_uploads',
    ....
],

The public_uploads is public/uploads/ so I move the temp file to public dir to make it easy when I deploy my app, everything in local works and fine

when I deploy the project then try to upload the image I got this error:

The avatar failed to upload.

I just check my console and got an error in the image:

https://i.stack.imgur.com/Wpk0y.png

Activity icon

Started a new Conversation How To Run Supervisor With AWS EB Autoscaling ?

I install supervisor on my elastic beanstalk manually by ssh and my app is autoscaling! the queue work does not work when the server is being autoscaled!

Does anyone have the file for running the supervisor in elastic beanstalk autoscaling?

I mean .ebextension final file for autorun supervisor for each server?

I'm using AWS beanstalk autoscaling ( PHP 7.3 running on 64bit Amazon Linux )

Oct
11
2 weeks ago
Activity icon

Started a new Conversation Upload File In Livewire ?

I have a page to update the image profile of the user, and there is in three things:

  • if the user does not have any image just show the default one
  • If the user has one just show it
  • if the user has one and wants to change to a new one, preview it!

Component:

class UpdateMainSetting extends Component
{
    use WithFileUploads;

    public $user;
    public $avatar;
    public $name;

    public function mount($user)
    {
        $this->user = $user;
        $this->avatar =  $user->avatar;
        $this->name = $user->name;
    }

    public function update()
    {
        $image = [
            'name' => $this->avatar->hashName(),
            'path' => $this->avatar->getRealPath(),
        ];

        if($this->avatar){
            Storage::disk('s3')->put('uploads/merchant/avatar/'.$image['name'], file_get_contents($image['path']), 'public');
        }

        $this->user->update([
            'email' => $this->email,
            'name' => $this->name,
            'avatar' => $this->avatar,
        ]);
    }

blade component:

@if ($avatar)
    <img src="{{ $avatar->temporaryUrl() }}">
@elseif (auth()->user()->avatar)
    <img src="{{ auth()->user()->avatar }}">
@else
    <img src="{{ auth()->user()->defualt }}">
@endif

All thing is worked with the store and show the image but I got an issue with the user upload an image then want to change it to a new one the temporaryUrl () does not work (it returns the value of the image that I store it in the database )

How can a preview image if the user already had an image?

Activity icon

Replied to How To Connect To DB Using Digitalocean App Platform?

@shakierfary Humm! First time hear about this! I just ask cuz I have in my project some SQL query, so I thought it will be some issue with pgsql!

Activity icon

Replied to How To Connect To DB Using Digitalocean App Platform?

@goeki85 No! I don't, What if I need MySQL?

Oct
10
3 weeks ago
Activity icon

Replied to How To Connect To DB Using Digitalocean App Platform?

@jlrdw Exactly, but always says ( 500 Server Error ) even the database has been created with the default app!

Oct
09
3 weeks ago
Activity icon

Started a new Conversation How To Connect To DB Using Digitalocean App Platform?

I upload my Laravel app to digital ocean app platform (new one) and set my env vars, and the database that creates with DB name when the app is finished deploying I just open the app and it shows 500 Server Error And it's DB Connection!

Activity icon

Replied to How To Avoid Session Killer When Upload The Changes?

@sinnbeck it's OK for like performance?

Activity icon

Replied to How To Avoid Session Killer When Upload The Changes?

@tykus

BROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_CONNECTION=database
SESSION_DRIVER=file
SESSION_LIFETIME=120
Activity icon

Started a new Conversation How To Avoid Session Killer When Upload The Changes?

I'm using Laravel with AWS the way that I upload the project is by ELB, code commit, and pipeline! everything is worked perfectly, but when I upload the changes that I made in local via git push the users that already login in my app all of them log out automatically! and they should login again!

How can I avoid this killing session!?

Oct
08
3 weeks ago
Activity icon

Replied to Communication Between Components Livewire?

@snapey The emit in CheckoutButton does not reach to the IndexOrder component when just test like this in update method:

 public function update() {
        dd('ssssss');
 }

I got nothing on the order page!

Activity icon

Started a new Conversation Communication Between Components Livewire?

I have two Livewire components, IndexOrder , CheckoutButton

IndexOrder :

class IndexOrder extends Component
{
    public $order;
    public $index;

    protected $listeners = ['order:update' => '$refresh'];

    public function mount($order, $index)
    {
        $this->order = $order;
        $this->index = $index;
    }

    public function render()
    {
        return view('livewire.merchant.order.index-order');
    }
}

CheckoutButton :

class CheckoutButton extends Component
{
    public function refreshOrder()
    {
        $this->emit('order:update');
    }

    public function render()
    {
        return view('livewire.user.checkout-button');
    }
}


blade:
<button type="submit" wire:click="refreshOrder">
      @lang('site.place_order')
</button>

I need it when the user clicks on the button refresh IndexOrder to show new order! and with the above code, the refresh does work!

Oct
07
3 weeks ago
Activity icon

Replied to How To Reload The Js Plugin After Component Refresh In Livewire?

@thewebartisan7 Already try that but doesn't run after choosing any county:

this is in the main app.blade.php file:

<script src="{{ url('cp') }}/plugins/bootstrap-select/bootstrap-select.min.js"></script>
<script>
    $('.my-select').selectpicker();
</script>

and above code in the component!

Activity icon

Replied to How To Reload The Js Plugin After Component Refresh In Livewire?

@snapey I did like that but still does not re-render :

 $this->dispatchBrowserEvent('contentChanged');


<script>
        window.addEventListener('contentChanged', event => {
            $('.my-select').selectpicker('render');
        });
 </script>
Activity icon

Started a new Conversation How To Reload The Js Plugin After Component Refresh In Livewire?

I have two select boxes first for countries second for cities and I'm using this plugin for the select boxes:

https://developer.snapappointments.com/bootstrap-select/

And I'm using this article via @Snapey :

https://talltips.novate.co.uk/livewire/dynamic-cascading-dropdown-with-livewire

When the user selects any country will get the cities of that country

everything is work but when I select any country the plugin bootstrap-select does not run and return to normal HTML select design

How can I render the js plugin after refreshing the component?

Oct
03
4 weeks ago
Activity icon

Started a new Conversation How To Refresh The Component After The Queue Job Is Finished?

I have a table products and job_statuses using this package:




https://github.com/imTigger/laravel-job-status

There is a column in job_statuses called status the package made this column finished once the queue job is finished!

So I created a column in products table called job_status_id (relation with job_statuses) just to save the job status id in the products table to see if this job is finished!

Simply I created a component using Livewire for just refresh single product when the job finished refreshing the component:




class ProductIndex extends Component
{
    public $product;


    public function mount($product)
    {
        $this->product = $product;
    }

    public function render()
    {
        return view('livewire.merchant.product.index');
    }
}

My blade:



@foreach ($products as $product)
 <livewire:merchant.product.product-index :product="$product" :key="$product->id">
@endforeach

Inside product-index component:



@if ($product->job_status->status == 'finished')
	// show real image
 
@else
	// show loader 
@endif

The $product->job_status is a relation (belongs to ) inside Product Model


How can I listen to status inside the component to just refresh it?

Oct
02
4 weeks ago
Activity icon

Replied to This Site Can’t Be Reached Laravel And Digitalocean

@sinnbeck Thank you so much you save my life ::::::)

Activity icon

Replied to This Site Can’t Be Reached Laravel And Digitalocean

@sinnbeck I don't know! but in the steps, I did not install apache2 and this is the steps that I follow to install the whole things

https://gist.github.com/vicgonvt/cd0431a5cdc043ebab7f4954f7b4d471

Activity icon

Replied to This Site Can’t Be Reached Laravel And Digitalocean

@sinnbeck my nginx config:


server {
    listen 80;
    listen [::]:80;

    root /var/www/html/asu/public;
    index index.php index.html index.htm index.nginx-debian.html;

    server_name 18.XXXXX5.172;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
    }

    location ~ /\.ht {
            deny all;
    }
}


Activity icon

Replied to This Site Can’t Be Reached Laravel And Digitalocean

@jlrdw I got this error when I run this command:

systemctl status apache2.service


● apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Fri 2020-10-02 08:32:15 UTC; 9s ago
       Docs: https://httpd.apache.org/docs/2.4/
    Process: 47667 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)

Oct 02 08:32:14 ip-172-31-20-216 systemd[1]: Starting The Apache HTTP Server...
Oct 02 08:32:15 ip-172-31-20-216 apachectl[47680]: (98)Address already in use: AH00072: make_sock: could no>
Oct 02 08:32:15 ip-172-31-20-216 apachectl[47680]: (98)Address already in use: AH00072: make_sock: could no>
Oct 02 08:32:15 ip-172-31-20-216 apachectl[47680]: no listening sockets available, shutting down
Oct 02 08:32:15 ip-172-31-20-216 apachectl[47680]: AH00015: Unable to open logs
Oct 02 08:32:15 ip-172-31-20-216 apachectl[47667]: Action 'start' failed.
Oct 02 08:32:15 ip-172-31-20-216 apachectl[47667]: The Apache error log may have more information.
Oct 02 08:32:15 ip-172-31-20-216 systemd[1]: apache2.service: Control process exited, code=exited, status=1>
Oct 02 08:32:15 ip-172-31-20-216 systemd[1]: apache2.service: Failed with result 'exit-code'.
Oct 02 08:32:15 ip-172-31-20-216 systemd[1]: Failed to start The Apache HTTP Server.


Oct
01
4 weeks ago
Activity icon

Started a new Conversation This Site Can’t Be Reached Laravel And Digitalocean

I run the app on Digitalocean and simply when I visit the IP the first page is working, but when I go to any other pages the page is reloading then show this message:

This site can’t be reached

XXXXIPXX106 took too long to respond.

I'm sorry but I don't where is the error to check it out, please provide me something to see and get the error and see what happened?

Activity icon

Replied to Your Requirements Could Not Be Resolved To An Installable Set Of Packages.

@tykus AM I need all things that said in the blog post ? or just intl?

Activity icon

Started a new Conversation Your Requirements Could Not Be Resolved To An Installable Set Of Packages.

I just clone my repo to digitalocean and just run composer install and get this error:

Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Your requirements could not be resolved to an installable set of packages.

Problem 1 - Installation request for cknow/laravel-money v5.0.1 -> satisfiable by cknow/laravel-money[v5.0.1]. - cknow/laravel-money v5.0.1 requires ext-intl * -> the requested PHP extension intl is missing from your system.

To enable extensions, verify that they are enabled in your .ini files: - /etc/php/7.4/cli/php.ini - /etc/php/7.4/cli/conf.d/10-mysqlnd.ini - /etc/php/7.4/cli/conf.d/10-opcache.ini

Googled the error and find this:

https://danyal.dk/blog/2018/11/09/laravel-composer-install-your-requirements-could-not-be-resolved-to-an-installable-set-of-packages/

Install what it's say but still get the same error

Activity icon

Replied to The Stream Or File "/var/www/html/asu/storage/logs/laravel.log"

@laracoft

I'm connecting as a user account to DigitalOcean

and ll :

total 12 drwxrwxr-x 2 www-data www-data 4096 Oct 1 12:07 ./ drwxrwxr-x 6 www-data www-data 4096 Oct 1 12:03 ../ -rwxrwxr-x 1 www-data www-data 14 Oct 1 12:03 .gitignore* -rwxrwxr-- 1 www-data www-data 0 Oct 1 12:07 laravel.log*

Activity icon

Replied to The Stream Or File "/var/www/html/asu/storage/logs/laravel.log"

@laracoft I'm sorry my bad! updated the question sorry

Activity icon

Started a new Conversation The Stream Or File "/var/www/html/asu/storage/logs/laravel.log"

I just cloned my repo to DigitalOcean to /var/www/html/asu

then composer install I got this error:

The stream or file "/var/www/html/asu/storage/logs/laravel.log" could not be opened in appen d mode: failed to open stream: Permission denied

I run this but still get the error:

chmod -R o+w /var/www/html/asu/storage/

Activity icon

Replied to 502 Bad Gateway Nginx (digitalocean)

I do not have .htaccess file

Sep
30
1 month ago
Activity icon

Replied to 502 Bad Gateway Nginx (digitalocean)

And when I run PHP -v I got:

PHP 7.4.3 (cli) (built: May 26 2020 12:24:22) ( NTS )

Activity icon

Replied to 502 Bad Gateway Nginx (digitalocean)

I got this when I run the command:

Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package php7.2-fpm E: Couldn't find any package by glob 'php7.2-fpm' E: Couldn't find any package by regex 'php7.2-fpm' E: Unable to locate package service E: Unable to locate package restart E: Unable to locate package service E: Unable to locate package php7.2-fpm E: Couldn't find any package by glob 'php7.2-fpm' E: Couldn't find any package by regex 'php7.2-fpm' E: Unable to locate package restart

Activity icon

Started a new Conversation 502 Bad Gateway Nginx (digitalocean)

I just install PHP on the Ubuntu server in the Digitalocean and create a simple PHP file just for testing

'<?php phpinfo();'

I got this error: 502 Bad Gateway nginx/1.18.0 (Ubuntu)

I check the errors in nginx’s error log and got this one:

2020/10/01 00:16:26 [crit] 23593#23593: *15 connect() to unix:/var/run/php/php7.2-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 212.###.###.182, server: 46.#####.106, request: "GET /info.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "46..###.###106"

Sep
29
1 month ago
Activity icon

Started a new Conversation How To Create A Progress Bar For Queue Laravel ?

I'm using Laravel 7, I have a background queue task that I want to be able to give progress on. I want to end up with something like this

https://blog.pusher.com/improve-user-experience-app-real-time-progress-bar-tutorial/

when the queue is starting to run the progress until the end of it!