coustas

Experience

1,540

0 Best Reply Awards

  • Member Since 2 Years Ago
  • 6 Lessons Completed
  • 0 Favorites

20th January, 2018

coustas left a reply on Image Validation Rules Example • 5 months ago

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 • 5 months ago

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 • 5 months ago

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?

18th January, 2018

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

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'); • 5 months ago

on this function

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

11th January, 2018

coustas started a new conversation Multiple Mail Drivers Laravel 5.5 • 5 months ago

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

4th January, 2018

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

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

3rd January, 2018

coustas left a reply on Remove Public Folder In Laravel 5.5 • 5 months ago

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

21st December, 2017

coustas left a reply on Integrating Moodle With Laravel • 6 months ago

yes can anyone share his ideas?

25th November, 2017

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

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

16th September, 2017

coustas started a new conversation Laravel Mix Issue -failed Bootstrap • 9 months ago

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');

9th September, 2017

coustas left a reply on Get The Min Start_date From Each Sem_id • 9 months ago

            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 • 9 months ago

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();

8th September, 2017

coustas started a new conversation Get The Min Start_date From Each Sem_id • 9 months ago

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 ..

4th September, 2017

coustas left a reply on Mail Bcc • 9 months ago

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

5th August, 2017

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

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

1st August, 2017

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

    {
}```

how can i call this on a blade without passing this on the compact

29th July, 2017

coustas left a reply on How To Refresh JWT Token • 10 months ago

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

9th July, 2017

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

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 • 11 months ago

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

18th June, 2017

coustas left a reply on How Do I Integrate Laravel Api With React Native.Please Provide Resources . • 1 year ago

just use simple node fetch

10th January, 2017

coustas left a reply on File Based Version Control System Written In Laravel • 1 year ago

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

coustas started a new conversation File Based Version Control System Written In Laravel • 1 year ago

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

12th September, 2016

coustas started a new conversation Left Joins On Model • 1 year ago

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? ];

19th July, 2016

coustas left a reply on Is It Possible To Create A Webview Android/ios App With Laravel? • 1 year ago

not web-view i mean

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

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

27th April, 2016

coustas started a new conversation Scheduler Issue • 2 years ago

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

17th January, 2016

coustas left a reply on Algolia Usage • 2 years ago

thank you dpde

coustas left a reply on Algolia Usage • 2 years ago

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

coustas started a new conversation Algolia Usage • 2 years ago

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

Edit Your Profile
Update

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