coustas

coustas

Member Since 2 Years Ago

Experience Points 1,540
Experience
Level
Lessons Completed 6
Lessons
Completed
Best Reply Awards 0
Best Answer
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.

20 Jan
10 months ago

coustas left a reply on Image Validation Rules Example

yes i am using dropzone... i add it is one form basically i want to validate only dimensions but

'banner_url' => 'dimensions:width=336,height=280'

whatever image i add it doesnt let me to pass it... i put correct size still nothing

coustas left a reply on Image Validation Rules Example

i add it but it still the same , i am using angular in front end but add also on headers headers: {enctype:'multipart/form-data'}

coustas started a new conversation Image Validation Rules Example

Hello i want to add a validation for image type i am using laravel 5.5 this is my code

'banner_url' => 'required|image|mimes:jpeg,png,jpg,gif,svg|max:2048'

i upload correct file but always says that the file is not correct type

what i am doing wrong?

18 Jan
11 months ago

coustas left a reply on How To Add Mailgun Headers AddTextHeader('x-mailgun-native-send', 'true');

Mail::send('emails.contact', $maildata, function ($m) use ($contactsubject,$contactemail) {
       $m->from($contactemail);
       $m->to($contactemail);
    $m->getHeaders()->addTextHeader('x-mailgun-native-send, 'true');
       $m->subject('test: ' . $contactsubject);
     });

like that

coustas started a new conversation How To Add Mailgun Headers AddTextHeader('x-mailgun-native-send', 'true');

on this function

Mail::send('emails.contact', $maildata, function ($m) use ($contactsubject,$contactemail) { $m->from($contactemail); $m->to($contactemail); $m->subject('test: ' . $contactsubject); });

11 Jan
11 months ago

coustas started a new conversation Multiple Mail Drivers Laravel 5.5

i am using mailgun and it works perfect but i wanna use mailgun and also another smtp driver on the fly how can i do it laravel 5.5

04 Jan
11 months ago

coustas started a new conversation How To Block Access-control-allow-origin:* And Only My Domain ?

i have frontend angular js that make http calls , this calls i want to block the usage from other domains how i can do that? now in my call i see this ccess-control-allow-origin:* but i wanna have this ccess-control-allow-origin: www.example.com

03 Jan
11 months ago

coustas left a reply on Remove Public Folder In Laravel 5.5

This page isn’t working localhost is currently unable to handle this request. HTTP ERROR 500

21 Dec
11 months ago

coustas left a reply on Integrating Moodle With Laravel

yes can anyone share his ideas?

25 Nov
1 year ago

coustas started a new conversation How To Redirect To Any Html Page If Database Has Error (Exception)

i am using laravel for my backend and angular js how can i pass Exceptions in angular front? e.g if the db is down i want to make a redirection to any page

16 Sep
1 year ago

coustas started a new conversation Laravel Mix Issue -failed Bootstrap

when i run npm run dev all goes well but when i try to add bootstrap elements it displays them wrong

mix.js('resources/assets/js/app.js', 'public/js')
   .js('resources/assets/js/bootstrap.min.js', 'public/js')
   .sass('resources/assets/sass/app.scss', 'public/css');
mix.styles([
    'resources/assets/css/bootstrap.min.css',
], 'public/css/bootstrap.min.css');

09 Sep
1 year ago

coustas left a reply on Get The Min Start_date From Each Sem_id

            MONTHNAME(start_date) as month, count(DISTINCT sem_id) as seminars, DATE_FORMAT(start_date,"%Y-%m") as monthNum from seminar_details group by seminar_id');```
it give me correct MIN for each seminar but it brings them all 

0 : {sem_id: 1239, min_start_date: "2017-06-15", month: "June", seminars: 1, monthNum: "2017-06"} 1 : {sem_id: 1390, min_start_date: "2017-07-31", month: "July", seminars: 1, monthNum: "2017-07"} 2 : {sem_id: 1438, min_start_date: "2017-06-30", month: "June", seminars: 1, monthNum: "2017-06"} 3 : {sem_id: 1501, min_start_date: "2017-04-24", month: "April", seminars: 1, monthNum: "2017-04"} 4 : {sem_id: 1502, min_start_date: "2017-04-07", month: "April", seminars: 1, monthNum: "2017-04"} 5 : {sem_id: 1506, min_start_date: "2017-06-20", month: "June", seminars: 1, monthNum: "2017-06"} 6 : {sem_id: 1508, min_start_date: "2017-05-02", month: "May", seminars: 1, monthNum: "2017-05"} 7 : {sem_id: 1509, min_start_date: "2017-05-11", month: "May", seminars: 1, monthNum: "2017-05"}```

what i really want is this :

0
:
{month: "June", monthNum: "2017-06", seminars: 1}
1
:
{month: "July", monthNum: "2017-07", seminars: 3}
2
:
{month: "September", monthNum: "2017-09", seminars: 1}
3
:
{month: "October", monthNum: "2017-10", seminars: 5}
4
:
{month: "November", monthNum: "2017-11", seminars: 2}
5
:
{month: "December", monthNum: "2017-12", seminars: 1}

coustas left a reply on Get The Min Start_date From Each Sem_id

hello @andonovn i have try before your query and nothing , look my code is like that

    $seminar_details = DB::table('seminar_details')
                            ->whereBetween('start_date', [Carbon::now()->startOfYear(), Carbon::now()->endOfYear()]);

 $seminarsByMonths = $seminar_details
                ->select(DB::raw('MONTHNAME(start_date) as month'),
                  DB::raw("DATE_FORMAT(start_date,'%Y-%m') as monthNum"),
                  DB::raw('count(DISTINCT sem_id) as seminars'))
                ->groupBy('monthNum')
                ->get();

08 Sep
1 year ago

coustas started a new conversation Get The Min Start_date From Each Sem_id

i have a table with

sem_id start_date 2 25/02/2017 2 29/02/2017 2 02/03/2017 2 06/06/2017 4 29/02/2017 4 04/08/2017 4 14/08/2017

basically i wanna get the min start_date of each sem_id, e.g now i am showing e.g that on February i have 2 seminars and 1 on march and one on june which is wrong , because the sem_id=2 it should show only for february ... how i can do that ..

04 Sep
1 year ago

coustas left a reply on Mail Bcc

ok correct but with 'to' everyone can see your mail how we can show only the email that it get the email e.g i have a list with emails and sent them to all in one action , but if i use BCC the to will be empty if i use to will have "1@example.com, 2@example.com , 3@example.com" in each email inbox ... i want the client 1@example.com to see only his email in the to

05 Aug
1 year ago

coustas left a reply on How To Call A Function From Main Controller To Blade Without Passing On Compact

it works but how can i add this in a if statement?

01 Aug
1 year ago

coustas started a new conversation How To Call A Function From Main Controller To Blade Without Passing On Compact

    {
}```

how can i call this on a blade without passing this on the compact
29 Jul
1 year ago

coustas left a reply on How To Refresh JWT Token

Hello in which file you did the change angular.module ? app.js or config.router???

09 Jul
1 year ago

coustas left a reply on How To Block When Someone Paste A Link From My Api

i have already implement permissions roles , but is only for admin .... on front there is no login area , cause the website is showing some infos that everyone can see.... basically i wanna hide from anyone that add this link on browser ..https://example.com/laravel/public/apifront/getcities/

coustas started a new conversation How To Block When Someone Paste A Link From My Api

this is a website that shows some data to users but i will prefer when the click to the actual api url to show them no access

18 Jun
1 year ago
10 Jan
1 year ago

coustas left a reply on File Based Version Control System Written In Laravel

cause the people that i work with are not programmers :)

coustas started a new conversation File Based Version Control System Written In Laravel

is there any system that can version pdf,word documents?

12 Sep
2 years ago

coustas started a new conversation Left Joins On Model

i have a model and i am doing that joins protected $searchable = [ 'columns' => [ 'seminar_categories.title' => 30, 'seminar_categories.description' => 40, 'users.name' => 50, 'global_categories.name' => 50, ], 'joins' => [ 'users' => ['users.id','seminar_categories.user_id'], 'global_mix_categories' => ['global_mix_categories.seminar_category_id','seminar_categories.id'], 'global_categories' => ['global_categories.id','global_mix_categories.global_category_id'], ],

i wanna add a left join another table how it is possible to do it? ];

19 Jul
2 years ago

coustas started a new conversation Is It Possible To Create A Webview Android/ios App With Laravel?

is it possible to create a webview android/ios app with laravel? can any one give me any suggestion

27 Apr
2 years ago

coustas started a new conversation Scheduler Issue

Hello i am trying to schedule a query daily but it doesn't work

please see below:

/console/kernel.php

namespace App\Console; use DB; use Illuminate\Console\Scheduling\Schedule;

use Illuminate\Foundation\Console\Kernel as ConsoleKernel;

class Kernel extends ConsoleKernel { /** * The Artisan commands provided by your application. * * @var array */ protected $commands = [ \App\Console\Commands\Inspire::class, ];

/**
 * Define the application's command schedule.
 *
 * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
 * @return void
 */
protected function schedule(Schedule $schedule)
{
    $schedule->command('inspire')
             ->hourly();



    $schedule->call(function () {
        DB::table('jobscalendar')->delete();
    })->dailyAt('08:47');
}

}

thank you

17 Jan
2 years ago

coustas left a reply on Algolia Usage

thank you dpde

coustas left a reply on Algolia Usage

yes but only for 100,000 operations... then paused until renewal

coustas started a new conversation Algolia Usage

Hello is it possible to use for my own website , Algolia as service to my laravel site without paying?