Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #17248
| From | "Christoph M. Becker" <cmbecker69@arcor.de> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: laravel validation |
| Date | 2016-12-30 16:16 +0100 |
| Organization | solani.org |
| Message-ID | <o45tnj$pks$1@solani.org> (permalink) |
| References | <o43f5s$dr2$1@news.albasani.net> |
On 29.12.2016 at 17:55, Jan Novak wrote: > i search for a laraval validation rule for directory pathes. > I want to know if the path exists and is writable, what was entered in a > form and will evaluated in the contoller. > > At the moment i have only > > $this->validate($request, > ['path'=>'required|unique:archive,path,'.$request->id,'id']); > > for validation (path is required and must be unique) > But how to include the rule for is_directory and is_writable ? I have no experience with Laravel, but maybe the following helps: <https://laracasts.com/discuss/channels/general-discussion/l5-where-to-add-custom-validation-function>. -- Christoph M. Becker
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
laravel validation Jan Novak <repcom@gmail.com> - 2016-12-29 17:55 +0100
Re: laravel validation Jerry Stuckle <jstucklex@attglobal.net> - 2016-12-29 13:19 -0500
Re: laravel validation Jan Novak <repcom@gmail.com> - 2016-12-30 08:58 +0100
Re: laravel validation Jerry Stuckle <jstucklex@attglobal.net> - 2016-12-30 08:56 -0500
Re: laravel validation Jan Novak <repcom@gmail.com> - 2016-12-30 16:03 +0100
Re: laravel validation "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-12-30 16:16 +0100
Re: laravel validation Härra Ramob <y6655442211@gmail.com> - 2022-01-02 03:49 -0800
csiph-web